Package system.runtime.remoting.contexts
Class Context
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.runtime.remoting.contexts.Context
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class Context extends NetObject
The base .NET class managing System.Runtime.Remoting.Contexts.Context, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.Remoting.Contexts.Context
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.String
assemblyShortName
Assembly name: mscorlibstatic java.lang.String
className
Qualified class name: System.Runtime.Remoting.Contexts.Contextstatic JCType
classType
The type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LocalDataStoreSlot
AllocateDataSlot()
static LocalDataStoreSlot
AllocateNamedDataSlot(java.lang.String name)
static Context
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoContext
, a cast assert is made to check if types are compatible.void
DoCallBack(CrossContextDelegate deleg)
static void
FreeNamedDataSlot(java.lang.String name)
void
Freeze()
int
getContextID()
IContextProperty[]
getContextProperties()
static NetObject
GetData(LocalDataStoreSlot slot)
static Context
getDefaultContext()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typestatic LocalDataStoreSlot
GetNamedDataSlot(java.lang.String name)
IContextProperty
GetProperty(java.lang.String name)
static boolean
RegisterDynamicProperty(IDynamicProperty prop, ContextBoundObject obj, Context ctx)
static void
SetData(LocalDataStoreSlot slot, NetObject data)
void
setJCOInstance(JCObject instance)
void
SetProperty(IContextProperty prop)
static boolean
UnregisterDynamicProperty(java.lang.String name, ContextBoundObject obj, Context ctx)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: mscorlib- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Runtime.Remoting.Contexts.Context- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Context
public Context(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
Context
public Context() throws java.lang.Throwable, ArgumentException, ArgumentNullException, InvalidOperationException, NullReferenceException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
InvalidOperationException
NullReferenceException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static Context cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoContext
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
Context
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
RegisterDynamicProperty
public static boolean RegisterDynamicProperty(IDynamicProperty prop, ContextBoundObject obj, Context ctx) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NullReferenceException, InvalidOperationException, RemotingException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
NullReferenceException
InvalidOperationException
RemotingException
-
UnregisterDynamicProperty
public static boolean UnregisterDynamicProperty(java.lang.String name, ContextBoundObject obj, Context ctx) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, RemotingException, NullReferenceException
-
AllocateDataSlot
public static LocalDataStoreSlot AllocateDataSlot() throws java.lang.Throwable, ArgumentException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
-
AllocateNamedDataSlot
public static LocalDataStoreSlot AllocateNamedDataSlot(java.lang.String name) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
-
GetNamedDataSlot
public static LocalDataStoreSlot GetNamedDataSlot(java.lang.String name) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
-
GetData
public static NetObject GetData(LocalDataStoreSlot slot) throws java.lang.Throwable, ArgumentException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
InvalidOperationException
ArgumentOutOfRangeException
-
GetProperty
public IContextProperty GetProperty(java.lang.String name) throws java.lang.Throwable, NullReferenceException
- Throws:
java.lang.Throwable
NullReferenceException
-
DoCallBack
public void DoCallBack(CrossContextDelegate deleg) throws java.lang.Throwable, ArgumentNullException, RemotingException, ArgumentException, InvalidOperationException, SecurityException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentNullException
RemotingException
ArgumentException
InvalidOperationException
SecurityException
ArgumentOutOfRangeException
-
FreeNamedDataSlot
public static void FreeNamedDataSlot(java.lang.String name) throws java.lang.Throwable, ArgumentException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
-
Freeze
public void Freeze() throws java.lang.Throwable, ArgumentException, InvalidOperationException
- Throws:
java.lang.Throwable
ArgumentException
InvalidOperationException
-
SetData
public static void SetData(LocalDataStoreSlot slot, NetObject data) throws java.lang.Throwable, ArgumentException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
InvalidOperationException
ArgumentOutOfRangeException
-
SetProperty
public void SetProperty(IContextProperty prop) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentException, NullReferenceException
- Throws:
java.lang.Throwable
ArgumentNullException
InvalidOperationException
ArgumentException
NullReferenceException
-
getContextID
public int getContextID() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getDefaultContext
public static Context getDefaultContext() throws java.lang.Throwable, ArgumentException, ArgumentNullException, InvalidOperationException, NullReferenceException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
InvalidOperationException
NullReferenceException
-
getContextProperties
public final IContextProperty[] getContextProperties() throws java.lang.Throwable, ArgumentException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
-
-