Package system.runtime.serialization
Class ObjectManager
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.runtime.serialization.ObjectManager
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class ObjectManager extends NetObject
The base .NET class managing System.Runtime.Serialization.ObjectManager, System.Runtime.Serialization.Formatters, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.See: https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.Serialization.ObjectManager
-
-
Field Summary
Fields Modifier and Type Field Description static String
assemblyFullName
Fully assembly qualified name: System.Runtime.Serialization.Formatters, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic String
assemblyShortName
Assembly name: System.Runtime.Serialization.Formattersstatic String
className
Qualified class name: System.Runtime.Serialization.ObjectManagerstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description ObjectManager()
ObjectManager(Object instance)
Internal constructor.ObjectManager(ISurrogateSelector selector, StreamingContext context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ObjectManager
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoObjectManager
, a cast assert is made to check if types are compatible.void
DoFixups()
String
getJCOAssemblyName()
Returns the reflected Assembly nameString
getJCOClassName()
Returns the reflected Class nameObject
getJCOInstance()
Returns the instantiated classString
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class TypeNetObject
GetObject(long objectID)
void
RaiseDeserializationEvent()
void
RaiseOnDeserializingEvent(NetObject obj)
void
RecordArrayElementFixup(long arrayToBeFixed, int[] indices, long objectRequired)
void
RecordArrayElementFixup(long arrayToBeFixed, int index, long objectRequired)
void
RecordArrayElementFixup(long dupParam0, JCORefOut dupParam1, long dupParam2)
void
RecordDelayedFixup(long objectToBeFixed, String memberName, long objectRequired)
void
RecordFixup(long objectToBeFixed, MemberInfo member, long objectRequired)
void
RegisterObject(NetObject obj, long objectID)
void
RegisterObject(NetObject obj, long objectID, SerializationInfo info)
void
RegisterObject(NetObject obj, long objectID, SerializationInfo info, long idOfContainingObj, MemberInfo member)
void
RegisterObject(NetObject obj, long objectID, SerializationInfo info, long idOfContainingObj, MemberInfo member, int[] arrayIndex)
void
RegisterObject(NetObject dupParam0, long dupParam1, SerializationInfo dupParam2, long dupParam3, MemberInfo dupParam4, JCORefOut dupParam5)
void
setJCOInstance(JCObject instance)
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toObjectFromArray, toObjectFromArray, toString, ToString, translateException
-
-
-
-
Field Detail
-
assemblyFullName
public static final String assemblyFullName
Fully assembly qualified name: System.Runtime.Serialization.Formatters, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final String assemblyShortName
Assembly name: System.Runtime.Serialization.Formatters- See Also:
- Constant Field Values
-
className
public static final String className
Qualified class name: System.Runtime.Serialization.ObjectManager- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ObjectManager
public ObjectManager(Object instance) throws Throwable
Internal constructor. Use with caution- Throws:
Throwable
-
ObjectManager
public ObjectManager(ISurrogateSelector selector, StreamingContext context) throws Throwable
- Throws:
Throwable
-
-
Method Detail
-
getJCOAssemblyName
public 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 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 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 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 ObjectManager cast(IJCOBridgeReflected from) throws Throwable
Try to cast theIJCOBridgeReflected
instance intoObjectManager
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
ObjectManager
instance- Throws:
Throwable
- in case of error during cast operation
-
GetObject
public NetObject GetObject(long objectID) throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, CultureNotFoundException
-
DoFixups
public void DoFixups() throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, CultureNotFoundException, SerializationException, PlatformNotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, MissingMemberException
-
RaiseDeserializationEvent
public void RaiseDeserializationEvent() throws Throwable
- Throws:
Throwable
-
RaiseOnDeserializingEvent
public void RaiseOnDeserializingEvent(NetObject obj) throws Throwable, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, NotSupportedException, MulticastNotSupportedException, InvalidOperationException
-
RecordArrayElementFixup
public void RecordArrayElementFixup(long arrayToBeFixed, int index, long objectRequired) throws Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, PlatformNotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, SerializationException
-
RecordArrayElementFixup
public void RecordArrayElementFixup(long arrayToBeFixed, int[] indices, long objectRequired) throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, CultureNotFoundException, PlatformNotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, SerializationException
-
RecordArrayElementFixup
public void RecordArrayElementFixup(long dupParam0, JCORefOut dupParam1, long dupParam2) throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, CultureNotFoundException, PlatformNotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, SerializationException
-
RecordDelayedFixup
public void RecordDelayedFixup(long objectToBeFixed, String memberName, long objectRequired) throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, CultureNotFoundException, PlatformNotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, SerializationException
-
RecordFixup
public void RecordFixup(long objectToBeFixed, MemberInfo member, long objectRequired) throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, CultureNotFoundException, SerializationException, PlatformNotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
-
RegisterObject
public void RegisterObject(NetObject obj, long objectID, SerializationInfo info, long idOfContainingObj, MemberInfo member, int[] arrayIndex) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, SerializationException, MulticastNotSupportedException, MissingMemberException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
SerializationException
MulticastNotSupportedException
MissingMemberException
-
RegisterObject
public void RegisterObject(NetObject dupParam0, long dupParam1, SerializationInfo dupParam2, long dupParam3, MemberInfo dupParam4, JCORefOut dupParam5) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, SerializationException, MulticastNotSupportedException, MissingMemberException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
SerializationException
MulticastNotSupportedException
MissingMemberException
-
RegisterObject
public void RegisterObject(NetObject obj, long objectID, SerializationInfo info, long idOfContainingObj, MemberInfo member) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, SerializationException, MulticastNotSupportedException, FormatException, MissingMemberException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
ObjectDisposedException
RankException
SerializationException
MulticastNotSupportedException
FormatException
MissingMemberException
-
RegisterObject
public void RegisterObject(NetObject obj, long objectID, SerializationInfo info) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, SerializationException, MulticastNotSupportedException, MissingMemberException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
IndexOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ArgumentNullException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
SerializationException
MulticastNotSupportedException
MissingMemberException
-
RegisterObject
public void RegisterObject(NetObject obj, long objectID) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, SerializationException, MulticastNotSupportedException, MissingMemberException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
IndexOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ArgumentNullException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
SerializationException
MulticastNotSupportedException
MissingMemberException
-
-