JuggerNET Runtime Library v3.6.54.0  3.6.54.0
Public Member Functions | Static Public Member Functions | Properties | List of all members
Codemesh.JuggerNET.PeerManager Class Reference

A class that is used to manage PeerMarshallers. More...

Inheritance diagram for Codemesh.JuggerNET.PeerManager:
Inheritance graph
[legend]
Collaboration diagram for Codemesh.JuggerNET.PeerManager:
Collaboration graph
[legend]

Public Member Functions

IPeerMarshaller ResolveMarshaller (Type type)
 
IPeerMarshaller ResolveMarshallerFromAttribute (JavaPeerAttribute jpa)
 The function used to resolve a marshaller for a type that declares its own JavaPeerAttribute. More...
 
IPeerMarshaller RegisterMarshaller (Type t, IPeerMarshaller m)
 
IPeerMarshaller RegisterMarshaller (Type t, IPeerMarshaller m, bool bFailIfRegistered)
 
void RegisterPeerTypeName (string peerTypeName)
 
IPeerMarshaller RegisterUnmarshaller (string typeInfo, IPeerMarshaller m)
 
IPeerMarshaller RegisterUnmarshaller (string typeInfo, IPeerMarshaller m, bool bFailIfRegistered)
 
void UnregisterMarshaller (Type t)
 
void UnregisterUnmarshaller (string typeInfo)
 
IPeerMarshaller GetPeerMarshaller (Type t)
 
IPeerMarshaller GetPeerUnmarshaller (JavaProxy inst)
 
IPeerMarshaller GetPeerUnmarshaller (string peerType)
 
JavaProxy Marshal (object dotNetInstance)
 Marshals a .NET instance into a Java object.
More...
 
JavaProxy Marshal (object dotNetInstance, JavaProxy javaInstance)
 Marshals a .NET instance into a Java object.
The Java object may be passed as an optional argument (default is null) More...
 
JavaProxy Marshal (object dotNetInstance, JavaProxy javaInstance, PeerMarshalContext ctx)
 Marshals a .NET instance into a Java object.
The Java object may be passed as an optional argument (default is null) More...
 
object Unmarshal (JavaProxy javaInstance)
 Unmarshals a Java instance into a .NET object. More...
 
object Unmarshal (JavaProxy javaInstance, object dotNetInstance)
 Unmarshals a Java instance into a .NET object. The .NET object may be passed as an optional argument (default is null). More...
 
bool IsPeerTypeName (string typeName)
 

Static Public Member Functions

static PeerManager GetPeerManager ()
 

Properties

string DefaultPeerMarshaller [get, set]
 A property holding the name of a .NET type that implements the IPeerMarshaller interface and is used for marshalling and unmarshalling when no custom marshaller is specified. The default value is Codemesh.JuggerNET.ReflectionPeerValueMarshaller. More...
 
string DefaultPeerType [get, set]
 A property holding the name of the Java type that is used as a peer type when no peer type is specified. You should rarely rely on this property because typically your peer type will need to implement some specific interfaces to be useful on the Java side. More...
 

Detailed Description

A class that is used to manage PeerMarshallers.

Member Function Documentation

◆ Marshal() [1/3]

JavaProxy Codemesh.JuggerNET.PeerManager.Marshal ( object  dotNetInstance)
inline

Marshals a .NET instance into a Java object.

Parameters
dotNetInstancethe .NET instance to marshal
Returns

Implements Codemesh.JuggerNET.IPeerMarshaller.

◆ Marshal() [2/3]

JavaProxy Codemesh.JuggerNET.PeerManager.Marshal ( object  dotNetInstance,
JavaProxy  javaInstance 
)
inline

Marshals a .NET instance into a Java object.
The Java object may be passed as an optional argument (default is null)

Parameters
dotNetInstancethe .NET instance to marshal
javaInstancean optional Java instance to marshal into.
Returns

Implements Codemesh.JuggerNET.IPeerMarshaller.

◆ Marshal() [3/3]

JavaProxy Codemesh.JuggerNET.PeerManager.Marshal ( object  dotNetInstance,
JavaProxy  javaInstance,
PeerMarshalContext  ctx 
)
inline

Marshals a .NET instance into a Java object.
The Java object may be passed as an optional argument (default is null)

Parameters
dotNetInstancethe .NET instance to marshal
javaInstancean optional Java instance to marshal into.
ctxthe marshalling context.
Returns

Implements Codemesh.JuggerNET.IPeerMarshaller.

References Codemesh.JuggerNET.IPeerMarshaller.Marshal().

◆ ResolveMarshallerFromAttribute()

IPeerMarshaller Codemesh.JuggerNET.PeerManager.ResolveMarshallerFromAttribute ( JavaPeerAttribute  jpa)
inline

The function used to resolve a marshaller for a type that declares its own JavaPeerAttribute.

Parameters
jpa
Returns

References Codemesh.JuggerNET.JavaPeerAttribute.PeerMarshaller, and Codemesh.JuggerNET.JavaPeerAttribute.PeerType.

◆ Unmarshal() [1/2]

object Codemesh.JuggerNET.PeerManager.Unmarshal ( JavaProxy  javaInstance)
inline

Unmarshals a Java instance into a .NET object.

Parameters
javaInstancethe Java instance to unmarshal.
Returns

Implements Codemesh.JuggerNET.IPeerMarshaller.

◆ Unmarshal() [2/2]

object Codemesh.JuggerNET.PeerManager.Unmarshal ( JavaProxy  javaInstance,
object  dotNetInstance 
)
inline

Unmarshals a Java instance into a .NET object. The .NET object may be passed as an optional argument (default is null).

Parameters
javaInstancethe Java instance to unmarshal.
dotNetInstancean optional .NET instance to unmarshal into.
Returns

Implements Codemesh.JuggerNET.IPeerMarshaller.

References Codemesh.JuggerNET.JavaProxy.Handle, Codemesh.JuggerNET.JavaProxy.JObject, and Codemesh.JuggerNET.IPeerMarshaller.Unmarshal().

Property Documentation

◆ DefaultPeerMarshaller

string Codemesh.JuggerNET.PeerManager.DefaultPeerMarshaller
getset

A property holding the name of a .NET type that implements the IPeerMarshaller interface and is used for marshalling and unmarshalling when no custom marshaller is specified. The default value is Codemesh.JuggerNET.ReflectionPeerValueMarshaller.

◆ DefaultPeerType

string Codemesh.JuggerNET.PeerManager.DefaultPeerType
getset

A property holding the name of the Java type that is used as a peer type when no peer type is specified. You should rarely rely on this property because typically your peer type will need to implement some specific interfaces to be useful on the Java side.


The documentation for this class was generated from the following file:

Copyright (c) 1999-2020 by Codemesh, Inc., ALL RIGHTS RESERVED.