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.
|
PHASE_NAMEPHASE_NAME| 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 |
applyProcessors(Object object,
int flags)
Deprecated.
as of 3.7.0. Use
applyProcessors(Object) instead. |
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)
Deprecated.
|
void |
unregisterEndpoint(String endpointName)
Deprecated.
|
void |
unregisterFlowConstruct(String flowConstructName)
Deprecated.
|
void |
unregisterModel(String modelName)
Deprecated.
|
void |
unregisterScheduler(Scheduler scheduler) |
void |
unregisterService(String serviceName)
Deprecated.
|
void |
unregisterTransformer(String transformerName) |
applyLifecycle, applyLifecycle, lookupObjectfireLifecycle, get, getRegistryId, isReadOnly, isRemote, lookupByType, lookupLocalObjects, lookupObject, lookupObject, lookupObjects, lookupObjectsForLifecycle, registerObject, registerObject, registerObjects, unregisterObject, unregisterObjectinitialisedisposestatic 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
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@Deprecated void unregisterConnector(String connectorName) throws MuleException
MuleExceptionvoid registerEndpoint(ImmutableEndpoint endpoint) throws MuleException
MuleException@Deprecated void unregisterEndpoint(String endpointName) throws MuleException
MuleExceptionvoid registerEndpointBuilder(String name, EndpointBuilder builder) throws MuleException
MuleExceptionvoid registerTransformer(Transformer transformer) throws MuleException
MuleExceptionvoid unregisterTransformer(String transformerName) throws MuleException
MuleException@Deprecated void registerService(Service service) throws MuleException
MuleException@Deprecated void unregisterService(String serviceName) throws MuleException
MuleExceptionvoid registerFlowConstruct(FlowConstruct flowConstruct) throws MuleException
MuleException@Deprecated void unregisterFlowConstruct(String flowConstructName) throws MuleException
MuleException@Deprecated void registerModel(Model model) throws MuleException
MuleException@Deprecated void unregisterModel(String modelName) throws MuleException
MuleExceptionvoid registerAgent(Agent agent) throws MuleException
MuleExceptionvoid unregisterAgent(String agentName) throws MuleException
MuleExceptionvoid registerScheduler(Scheduler scheduler) throws MuleException
MuleExceptionvoid unregisterScheduler(Scheduler scheduler) throws MuleException
MuleExceptionCollection<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.@Deprecated Object applyProcessors(Object object, int flags) throws MuleException
applyProcessors(Object) instead.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.ServiceDescriptor lookupServiceDescriptor(ServiceType type, String name, Properties overrides) throws ServiceException
ServiceExceptionCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.