public interface MuleRegistry extends LifecycleRegistry
| Modifier and Type | Field and Description |
|---|---|
static int |
INJECT_PROCESSORS_BYPASS_FLAG
Determines whether Inject processors should get executed on an object added to the registry Inject processors are responsible
for processing inject interfaces such as
MuleContextAware |
static int |
LIFECYCLE_BYPASS_FLAG
Pass this flag as metadata of the
Registry.registerObject(String, Object, Object) method to have lifecycle method
calls on the registered objects omitted. |
static int |
PRE_INIT_PROCESSORS_BYPASS_FLAG
Determines whether pre-init processors should get executed on an object added to the registry.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
applyProcessors(Object object)
Will execute any processors on an object without actually registering the object in the registry.
|
Object |
applyProcessorsAndLifecycle(Object object)
Will execute any processors on an object and fire any lifecycle methods according to the current lifecycle without actually
registering the object in the registry.
|
Agent |
lookupAgent(String agentName) |
FlowConstruct |
lookupFlowConstruct(String name) |
Collection<FlowConstruct> |
lookupFlowConstructs() |
Transformer |
lookupTransformer(org.mule.runtime.api.metadata.DataType source,
org.mule.runtime.api.metadata.DataType result)
Will find a transformer that is the closest match to the desired input and output.
|
Transformer |
lookupTransformer(String name) |
List<Transformer> |
lookupTransformers(org.mule.runtime.api.metadata.DataType source,
org.mule.runtime.api.metadata.DataType result)
This method will return a list of
Transformer objects that accept the given
input and return the given output type of object |
void |
registerAgent(Agent agent) |
void |
registerFlowConstruct(FlowConstruct flowConstruct) |
void |
registerTransformer(Transformer transformer) |
void |
unregisterAgent(String agentName) |
void |
unregisterTransformer(String transformerName) |
applyLifecycle, applyLifecycle, applyLifecycle, lookupObjectfireLifecycle, get, getRegistryId, isReadOnly, isRemote, lookupByType, lookupLocalObjects, lookupObject, lookupObject, lookupObjects, lookupObjectsForLifecycle, registerObject, registerObject, registerObjects, unregisterObject, unregisterObjectstatic final int LIFECYCLE_BYPASS_FLAG
Registry.registerObject(String, Object, Object) method to have lifecycle method
calls on the registered objects omitted. Unless extending Mule, one will probably never have a use for this.static final int INJECT_PROCESSORS_BYPASS_FLAG
MuleContextAwarestatic final int PRE_INIT_PROCESSORS_BYPASS_FLAG
Transformer lookupTransformer(String name)
FlowConstruct lookupFlowConstruct(String name)
List<Transformer> lookupTransformers(org.mule.runtime.api.metadata.DataType source, org.mule.runtime.api.metadata.DataType result)
Transformer objects that accept the given
input and return the given output type of objectsource - The desired input type for the transformerresult - the desired output type for the transformerTransformer lookupTransformer(org.mule.runtime.api.metadata.DataType source, org.mule.runtime.api.metadata.DataType result) throws TransformerException
source - The desired input type for the transformerresult - the desired output type for the transformerTransformerException - will be thrown if there is more than one matchCollection<FlowConstruct> lookupFlowConstructs()
void registerTransformer(Transformer transformer) throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionvoid unregisterTransformer(String transformerName) throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionvoid registerFlowConstruct(FlowConstruct flowConstruct) throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionvoid registerAgent(Agent agent) throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionvoid unregisterAgent(String agentName) throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionObject applyProcessorsAndLifecycle(Object object) throws org.mule.runtime.api.exception.MuleException
object - the object to processorg.mule.runtime.api.exception.MuleException - if the registry fails to perform the lifecycle change or process object
processors for the object.Object applyProcessors(Object object) throws org.mule.runtime.api.exception.MuleException
object - the object to processorg.mule.runtime.api.exception.MuleException - if the registry fails to process object processors for the object.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.