|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MuleRegistry
Adds lookup/register/unregister methods for Mule-specific entities to the standard Registry interface.
Field Summary | |
---|---|
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. |
Fields inherited from interface org.mule.api.lifecycle.Initialisable |
---|
PHASE_NAME |
Fields inherited from interface org.mule.api.lifecycle.Disposable |
---|
PHASE_NAME |
Method Summary | |
---|---|
Object |
applyLifecycle(Object object)
Will execute any lifecycle phases on an object without actually registering the object in the registry. |
Object |
applyLifecycle(Object object,
String phase)
|
Object |
applyProcessors(Object object)
Will execute any processors on an object without actually registering the object in the registry. |
Object |
applyProcessors(Object object,
int flags)
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. |
Collection<Agent> |
getAgents()
Deprecated. Use lookupAgent() instead |
Collection<Connector> |
getConnectors()
Deprecated. Use lookupConnector() instead |
Collection<ImmutableEndpoint> |
getEndpoints()
Deprecated. Use EndpointFactory for creation/lookup of individual endpoints instead |
Collection<Model> |
getModels()
Deprecated. Use lookupModel() instead |
Collection<Transformer> |
getTransformers()
Deprecated. Use lookupTransformer() instead |
Agent |
lookupAgent(String agentName)
|
Connector |
lookupConnector(String name)
|
EndpointBuilder |
lookupEndpointBuilder(String name)
Looks-up endpoint builders which can be used to repeatably create endpoints with the same configuration. |
EndpointFactory |
lookupEndpointFactory()
Deprecated. use MuleContext.getEndpointFactory() instead |
FlowConstruct |
lookupFlowConstruct(String name)
|
Collection<FlowConstruct> |
lookupFlowConstructs()
|
Model |
lookupModel(String name)
|
Service |
lookupService(String name)
|
ServiceDescriptor |
lookupServiceDescriptor(ServiceType type,
String name,
Properties overrides)
|
Collection<Service> |
lookupServices()
|
Collection<Service> |
lookupServices(String model)
|
Model |
lookupSystemModel()
|
Transformer |
lookupTransformer(Class<?> input,
Class<?> output)
Deprecated. use lookupTransformer(org.mule.api.transformer.DataType, org.mule.api.transformer.DataType) instead |
Transformer |
lookupTransformer(DataType<?> source,
DataType<?> result)
Will find a transformer that is the closest match to the desired input and output. |
Transformer |
lookupTransformer(String name)
|
List<Transformer> |
lookupTransformers(Class<?> input,
Class<?> output)
Deprecated. use lookupTransformers(org.mule.api.transformer.DataType, org.mule.api.transformer.DataType) instead |
List<Transformer> |
lookupTransformers(DataType<?> source,
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 |
registerConnector(Connector connector)
|
void |
registerEndpoint(ImmutableEndpoint endpoint)
|
void |
registerEndpointBuilder(String name,
EndpointBuilder builder)
|
void |
registerFlowConstruct(FlowConstruct flowConstruct)
|
void |
registerModel(Model model)
|
void |
registerService(Service service)
|
void |
registerTransformer(Transformer transformer)
|
void |
unregisterAgent(String agentName)
|
void |
unregisterConnector(String connectorName)
|
void |
unregisterEndpoint(String endpointName)
|
void |
unregisterFlowConstruct(String flowConstructName)
|
void |
unregisterModel(String modelName)
|
void |
unregisterService(String serviceName)
|
void |
unregisterTransformer(String transformerName)
|
Methods inherited from interface org.mule.api.registry.Registry |
---|
fireLifecycle, get, getRegistryId, isReadOnly, isRemote, lookupByType, lookupObject, lookupObject, lookupObjects, lookupObjectsForLifecycle, registerObject, registerObject, registerObjects, unregisterObject, unregisterObject |
Methods inherited from interface org.mule.api.lifecycle.Initialisable |
---|
initialise |
Methods inherited from interface org.mule.api.lifecycle.Disposable |
---|
dispose |
Field Detail |
---|
static 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.
Registry.registerObject(String, Object, Object)
,
Constant Field Valuesstatic final int INJECT_PROCESSORS_BYPASS_FLAG
MuleContextAware
static final int PRE_INIT_PROCESSORS_BYPASS_FLAG
Method Detail |
---|
Connector lookupConnector(String name)
EndpointBuilder lookupEndpointBuilder(String name)
name
- the name of the endpointBuilder to find
@Deprecated EndpointFactory lookupEndpointFactory()
MuleContext.getEndpointFactory()
instead
Transformer lookupTransformer(String name)
Service lookupService(String name)
FlowConstruct lookupFlowConstruct(String name)
@Deprecated List<Transformer> lookupTransformers(Class<?> input, Class<?> output)
lookupTransformers(org.mule.api.transformer.DataType, org.mule.api.transformer.DataType)
instead
Transformer
objects that accept the given
input and return the given output type of object
input
- The desiered input type for the transformeroutput
- the desired output type for the transformer
List<Transformer> lookupTransformers(DataType<?> source, DataType<?> result)
Transformer
objects that accept the given
input and return the given output type of object
source
- The desired input type for the transformerresult
- the desired output type for the transformer
@Deprecated Transformer lookupTransformer(Class<?> input, Class<?> output) throws TransformerException
lookupTransformer(org.mule.api.transformer.DataType, org.mule.api.transformer.DataType)
instead
input
- The desiered input type for the transformeroutput
- the desired output type for the transformer
TransformerException
- will be thrown if there is more than one matchTransformer lookupTransformer(DataType<?> source, DataType<?> result) throws TransformerException
source
- The desiered input type for the transformerresult
- the desired output type for the transformer
TransformerException
- will be thrown if there is more than one matchCollection<Service> lookupServices(String model)
Collection<Service> lookupServices()
Collection<FlowConstruct> lookupFlowConstructs()
Model lookupModel(String name)
Model lookupSystemModel()
Agent lookupAgent(String agentName)
@Deprecated Collection<Model> getModels()
@Deprecated Collection<Connector> getConnectors()
@Deprecated Collection<ImmutableEndpoint> getEndpoints()
EndpointFactory
for creation/lookup of individual endpoints instead
@Deprecated Collection<Agent> getAgents()
@Deprecated Collection<Transformer> getTransformers()
void registerConnector(Connector connector) throws MuleException
MuleException
void unregisterConnector(String connectorName) throws MuleException
MuleException
void registerEndpoint(ImmutableEndpoint endpoint) throws MuleException
MuleException
void unregisterEndpoint(String endpointName) throws MuleException
MuleException
void registerEndpointBuilder(String name, EndpointBuilder builder) throws MuleException
MuleException
void registerTransformer(Transformer transformer) throws MuleException
MuleException
void unregisterTransformer(String transformerName) throws MuleException
MuleException
void registerService(Service service) throws MuleException
MuleException
void unregisterService(String serviceName) throws MuleException
MuleException
void registerFlowConstruct(FlowConstruct flowConstruct) throws MuleException
MuleException
void unregisterFlowConstruct(String flowConstructName) throws MuleException
MuleException
void registerModel(Model model) throws MuleException
MuleException
void unregisterModel(String modelName) throws MuleException
MuleException
void registerAgent(Agent agent) throws MuleException
MuleException
void unregisterAgent(String agentName) throws MuleException
MuleException
Object applyProcessorsAndLifecycle(Object object) throws MuleException
object
- the object to process
MuleException
- if the registry fails to perform the lifecycle change or process object processors for the object.Object applyProcessors(Object object) throws MuleException
object
- the object to process
MuleException
- if the registry fails to process object processors for the object.Object applyProcessors(Object object, int flags) throws MuleException
object
- the object to processflags
- MuleRegistry
flags which control which injectors will be applied
MuleException
- if the registry fails to process object processors for the object.Object applyLifecycle(Object object) throws MuleException
object
- the object to apply the current lifecycle state to
MuleException
- if the registry fails to execute a lifecycle method.Object applyLifecycle(Object object, String phase) throws MuleException
MuleException
ServiceDescriptor lookupServiceDescriptor(ServiceType type, String name, Properties overrides) throws ServiceException
ServiceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |