@NoExtend public class DefaultPolicyInstance extends AbstractComponent implements PolicyInstance, FlowConstruct, MuleContextAware, Lifecycle
LOCATION_KEY, ROOT_CONTAINER_NAME_KEY
ANNOTATIONS_PROPERTY_NAME
PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_NAME
Constructor and Description |
---|
DefaultPolicyInstance() |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
A lifecycle method where implementor should free up any resources.
|
FlowExceptionHandler |
getExceptionListener() |
LifecycleState |
getLifecycleState() |
MuleContext |
getMuleContext() |
String |
getName()
Gets the name of the object
|
Optional<PolicyChain> |
getOperationPolicyChain() |
ProcessingStrategy |
getProcessingStrategy() |
String |
getServerId() |
Optional<PolicyChain> |
getSourcePolicyChain() |
FlowConstructStatistics |
getStatistics() |
String |
getUniqueIdString()
Generate a unique ID string
|
void |
initialise()
Method used to perform any initialisation work.
|
void |
setMuleContext(MuleContext context) |
void |
setOperationPolicyChain(PolicyChain request) |
void |
setSourcePolicyChain(PolicyChain source) |
void |
start() |
void |
stop() |
getAnnotation, getAnnotations, getLocation, getRootContainerLocation, setAnnotations
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnnotation, getAnnotations, getLocation, getRootContainerLocation, setAnnotations
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
public void start() throws MuleException
start
in interface Startable
MuleException
public FlowExceptionHandler getExceptionListener()
getExceptionListener
in interface FlowConstruct
public FlowConstructStatistics getStatistics()
getStatistics
in interface FlowConstruct
public MuleContext getMuleContext()
getMuleContext
in interface FlowConstruct
public String getUniqueIdString()
FlowConstruct
getUniqueIdString
in interface FlowConstruct
public String getServerId()
getServerId
in interface FlowConstruct
public String getName()
NamedObject
getName
in interface NamedObject
public LifecycleState getLifecycleState()
getLifecycleState
in interface LifecycleStateEnabled
public void setMuleContext(MuleContext context)
setMuleContext
in interface MuleContextAware
context
- the Mule node.public void dispose()
Disposable
dispose
in interface Disposable
public void stop() throws MuleException
stop
in interface Stoppable
MuleException
public void setOperationPolicyChain(PolicyChain request)
public void setSourcePolicyChain(PolicyChain source)
public Optional<PolicyChain> getSourcePolicyChain()
getSourcePolicyChain
in interface PolicyInstance
public Optional<PolicyChain> getOperationPolicyChain()
getOperationPolicyChain
in interface PolicyInstance
public ProcessingStrategy getProcessingStrategy()
getProcessingStrategy
in interface FlowConstruct
ProcessingStrategy
used.Copyright © 2018. All rights reserved.