public interface MuleRegistry extends Registry
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.
|
PHASE_NAME
PHASE_NAME
Modifier and Type | Method and Description |
---|---|
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)
Deprecated.
|
Collection<Scheduler> |
lookupScheduler(Predicate<String> schedulerNamePredicate) |
Service |
lookupService(String name)
Deprecated.
|
ServiceDescriptor |
lookupServiceDescriptor(ServiceType type,
String name,
Properties overrides) |
Collection<Service> |
lookupServices()
Deprecated.
|
Collection<Service> |
lookupServices(String model)
Deprecated.
|
Model |
lookupSystemModel()
Deprecated.
|
Transformer |
lookupTransformer(Class<?> input,
Class<?> output)
Deprecated.
|
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.
|
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)
Deprecated.
|
void |
registerScheduler(Scheduler scheduler) |
void |
registerService(Service service)
Deprecated.
|
void |
registerTransformer(Transformer transformer) |
void |
unregisterAgent(String agentName) |
void |
unregisterConnector(String connectorName) |
void |
unregisterEndpoint(String endpointName) |
void |
unregisterFlowConstruct(String flowConstructName) |
void |
unregisterModel(String modelName)
Deprecated.
|
void |
unregisterScheduler(Scheduler scheduler) |
void |
unregisterService(String serviceName)
Deprecated.
|
void |
unregisterTransformer(String transformerName) |
fireLifecycle, get, getRegistryId, isReadOnly, isRemote, lookupByType, lookupLocalObjects, lookupObject, lookupObject, lookupObjects, lookupObjectsForLifecycle, registerObject, registerObject, registerObjects, unregisterObject, unregisterObject
initialise
dispose
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.static final int INJECT_PROCESSORS_BYPASS_FLAG
MuleContextAware
static final int PRE_INIT_PROCESSORS_BYPASS_FLAG
EndpointBuilder lookupEndpointBuilder(String name)
name
- the name of the endpointBuilder to find@Deprecated EndpointFactory lookupEndpointFactory()
MuleContext.getEndpointFactory()
insteadTransformer lookupTransformer(String name)
@Deprecated 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)
insteadTransformer
objects that accept the given
input and return the given output type of objectinput
- The desiered input type for the transformeroutput
- the desired output type for the transformerList<Transformer> lookupTransformers(DataType<?> source, 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 transformer@Deprecated Transformer lookupTransformer(Class<?> input, Class<?> output) throws TransformerException
lookupTransformer(org.mule.api.transformer.DataType, org.mule.api.transformer.DataType)
insteadinput
- The desiered input type for the transformeroutput
- the desired output type for the transformerTransformerException
- 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 transformerTransformerException
- will be thrown if there is more than one match@Deprecated Collection<Service> lookupServices(String model)
@Deprecated Collection<Service> lookupServices()
Collection<FlowConstruct> lookupFlowConstructs()
@Deprecated Model lookupModel(String name)
@Deprecated Model lookupSystemModel()
@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
@Deprecated void registerService(Service service) throws MuleException
MuleException
@Deprecated void unregisterService(String serviceName) throws MuleException
MuleException
void registerFlowConstruct(FlowConstruct flowConstruct) throws MuleException
MuleException
void unregisterFlowConstruct(String flowConstructName) throws MuleException
MuleException
@Deprecated void registerModel(Model model) throws MuleException
MuleException
@Deprecated void unregisterModel(String modelName) throws MuleException
MuleException
void registerAgent(Agent agent) throws MuleException
MuleException
void unregisterAgent(String agentName) throws MuleException
MuleException
void registerScheduler(Scheduler scheduler) throws MuleException
MuleException
void unregisterScheduler(Scheduler scheduler) throws MuleException
MuleException
Collection<Scheduler> lookupScheduler(Predicate<String> schedulerNamePredicate)
Object applyProcessorsAndLifecycle(Object object) throws MuleException
object
- the object to processMuleException
- 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 processMuleException
- 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 appliedMuleException
- 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 toMuleException
- 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
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.