public class MarshalService
extends jadex.bridge.service.BasicService
implements jadex.bridge.service.types.marshal.IMarshalService
Modifier and Type | Field and Description |
---|---|
protected java.util.List<jadex.commons.transformation.traverser.ITraverseProcessor> |
processors
The clone processors.
|
protected java.util.Map<java.lang.Class<?>,boolean[]> |
references
The reference class cache (clazz->boolean (is reference)).
|
static java.util.Map<java.lang.Class<?>,boolean[]> |
REFERENCES
The predefined reference settings (clazz->boolean (is reference)).
|
Constructor and Description |
---|
MarshalService(jadex.bridge.IInternalAccess access)
Create marshal service.
|
Modifier and Type | Method and Description |
---|---|
void |
addCloneProcessor(jadex.commons.transformation.traverser.ITraverseProcessor proc)
Add a clone processor.
|
java.util.List<jadex.commons.transformation.traverser.ITraverseProcessor> |
getCloneProcessors()
Get the clone processors.
|
java.lang.Class<?>[] |
getRemoteInterfaces(java.lang.Object object,
java.lang.ClassLoader cl)
Get the proxy interfaces (empty list if none).
|
boolean |
isLocalReference(java.lang.Object object)
Test if an object has reference semantics.
|
boolean |
isReference(java.lang.Object object,
boolean local)
Test if an object has reference semantics.
|
boolean |
isRemoteObject(java.lang.Object target)
Test if an object is a remote object.
|
boolean |
isRemoteReference(java.lang.Object object)
Test if an object has reference semantics.
|
void |
removeCloneProcessor(jadex.commons.transformation.traverser.ITraverseProcessor proc)
Remove a clone processor.
|
void |
setReferenceProperties(java.lang.Class clazz,
boolean localref,
boolean remoteref)
Register a class with reference values for local and remote.
|
jadex.commons.future.IFuture<java.lang.Void> |
shutdownService()
Shutdown the service.
|
jadex.commons.future.IFuture<java.lang.Void> |
startService()
Start the service.
|
createServiceIdentifier, createServiceIdentifier, equals, generateServiceName, getInterfaceType, getInternalAccess, getMethodTimeout, getPropertyMap, getProviderId, getServiceIdentifier, hashCode, initNFProperties, isValid, setComponentAccess, setPropertyMap, toString
public static final java.util.Map<java.lang.Class<?>,boolean[]> REFERENCES
protected java.util.List<jadex.commons.transformation.traverser.ITraverseProcessor> processors
protected java.util.Map<java.lang.Class<?>,boolean[]> references
public MarshalService(jadex.bridge.IInternalAccess access)
public jadex.commons.future.IFuture<java.lang.Void> startService()
startService
in interface jadex.bridge.service.IInternalService
startService
in class jadex.bridge.service.BasicService
public jadex.commons.future.IFuture<java.lang.Void> shutdownService()
shutdownService
in interface jadex.bridge.service.IInternalService
shutdownService
in class jadex.bridge.service.BasicService
public boolean isLocalReference(java.lang.Object object)
isLocalReference
in interface jadex.bridge.service.types.marshal.IMarshalService
public boolean isRemoteReference(java.lang.Object object)
isRemoteReference
in interface jadex.bridge.service.types.marshal.IMarshalService
public void setReferenceProperties(java.lang.Class clazz, boolean localref, boolean remoteref)
setReferenceProperties
in interface jadex.bridge.service.types.marshal.IMarshalService
public boolean isRemoteObject(java.lang.Object target)
isRemoteObject
in interface jadex.bridge.service.types.marshal.IMarshalService
public java.util.List<jadex.commons.transformation.traverser.ITraverseProcessor> getCloneProcessors()
getCloneProcessors
in interface jadex.bridge.service.types.marshal.IMarshalService
public void addCloneProcessor(jadex.commons.transformation.traverser.ITraverseProcessor proc)
addCloneProcessor
in interface jadex.bridge.service.types.marshal.IMarshalService
public void removeCloneProcessor(jadex.commons.transformation.traverser.ITraverseProcessor proc)
removeCloneProcessor
in interface jadex.bridge.service.types.marshal.IMarshalService
public boolean isReference(java.lang.Object object, boolean local)
public java.lang.Class<?>[] getRemoteInterfaces(java.lang.Object object, java.lang.ClassLoader cl)
getRemoteInterfaces
in interface jadex.bridge.service.types.marshal.IMarshalService