@NoInstantiate public final class ArtifactObjectSerializer extends Object implements ObjectSerializer, Initialisable, MuleContextAware
DEFAULT_OBJECT_SERIALIZER_NAME
PHASE_NAME
Constructor and Description |
---|
ArtifactObjectSerializer(ClassLoaderRepository classLoaderRepository) |
Modifier and Type | Method and Description |
---|---|
SerializationProtocol |
getExternalProtocol()
Provides access to the serialization protocol used for external consumption, that is, when objects are serialized
on the container to be consumed later outside the container.
|
SerializationProtocol |
getInternalProtocol()
Provides access to the serialization protocol used for internal consumption, that is, when objects are serialized
on the container to reuse them later inside the container.
|
void |
initialise()
Method used to perform any initialisation work.
|
void |
setMuleContext(MuleContext context) |
public ArtifactObjectSerializer(ClassLoaderRepository classLoaderRepository)
public SerializationProtocol getInternalProtocol()
ObjectSerializer
getInternalProtocol
in interface ObjectSerializer
public SerializationProtocol getExternalProtocol()
ObjectSerializer
getExternalProtocol
in interface ObjectSerializer
public void setMuleContext(MuleContext context)
setMuleContext
in interface MuleContextAware
context
- the Mule node.public void initialise() throws InitialisationException
Initialisable
InitialisationException
should be thrown.
In case that the Initialisable.initialise()
method execution fails then mule will call the Disposable.dispose()
method if
the class also implements Disposable
allowing the object to dispose any allocated resource during
Initialisable.initialise()
initialise
in interface Initialisable
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownDisposable
Copyright © 2018. All rights reserved.