|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Registry
Field Summary | |
---|---|
static int |
DEFAULT_SCOPE
|
static int |
SCOPE_IMMEDIATE
|
static int |
SCOPE_LOCAL
|
static int |
SCOPE_REMOTE
|
Fields inherited from interface org.mule.api.lifecycle.Initialisable |
---|
PHASE_NAME |
Fields inherited from interface org.mule.api.lifecycle.Disposable |
---|
PHASE_NAME |
Method Summary | |
---|---|
Collection |
getAgents()
Deprecated. Use lookupAgent() instead |
Collection |
getConnectors()
Deprecated. Use lookupConnector() instead |
int |
getDefaultScope()
|
Collection |
getEndpoints()
Deprecated. Use lookupEndpoint() instead |
Collection |
getModels()
Deprecated. Use lookupModel() instead |
Registry |
getParent()
|
String |
getRegistryId()
|
Collection |
getTransformers()
Deprecated. Use lookupTransformer() instead |
boolean |
isDisposed()
|
boolean |
isDisposing()
|
boolean |
isInitialised()
|
boolean |
isInitialising()
|
boolean |
isReadOnly()
|
boolean |
isRemote()
|
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()
|
Model |
lookupModel(String name)
|
Object |
lookupObject(Class type)
Look up a single object by type. |
Object |
lookupObject(Class type,
int scope)
Look up a single object by type. |
Object |
lookupObject(String key)
Look up a single object by name. |
Object |
lookupObject(String key,
int scope)
Look up a single object by name. |
Collection |
lookupObjects(Class type)
Look up all objects of a given type. |
Collection |
lookupObjects(Class type,
int scope)
Look up all objects of a given type. |
Service |
lookupService(String component)
|
ServiceDescriptor |
lookupServiceDescriptor(String type,
String name,
Properties overrides)
|
Collection |
lookupServices()
|
Collection |
lookupServices(String model)
|
Model |
lookupSystemModel()
|
Transformer |
lookupTransformer(Class input,
Class output)
Will find a transformer that is the closest match to the desired input and output. |
Transformer |
lookupTransformer(String name)
|
List |
lookupTransformers(Class input,
Class output)
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 |
registerModel(Model model)
|
void |
registerObject(String key,
Object value)
|
void |
registerObject(String key,
Object value,
Object metadata)
|
void |
registerObjects(Map objects)
|
void |
registerService(Service service)
|
void |
registerTransformer(Transformer transformer)
|
void |
setDefaultScope(int scope)
|
void |
setParent(Registry registry)
|
void |
unregisterAgent(String agentName)
|
void |
unregisterConnector(String connectorName)
|
void |
unregisterEndpoint(String endpointName)
|
void |
unregisterModel(String modelName)
|
void |
unregisterObject(String key)
|
void |
unregisterService(String serviceName)
|
void |
unregisterTransformer(String transformerName)
|
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 SCOPE_IMMEDIATE
static final int SCOPE_LOCAL
static final int SCOPE_REMOTE
static final int DEFAULT_SCOPE
Method Detail |
---|
Object lookupObject(String key)
Object lookupObject(String key, int scope)
Collection lookupObjects(Class type)
Collection lookupObjects(Class type, int scope)
Object lookupObject(Class type) throws RegistrationException
RegistrationException
Object lookupObject(Class type, int scope) throws RegistrationException
RegistrationException
Connector lookupConnector(String name)
EndpointBuilder lookupEndpointBuilder(String name)
EndpointFactory lookupEndpointFactory()
Transformer lookupTransformer(String name)
Service lookupService(String component)
List lookupTransformers(Class input, Class output)
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
Transformer lookupTransformer(Class input, Class output) throws TransformerException
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 matchCollection lookupServices(String model)
Collection lookupServices()
Model lookupModel(String name)
Model lookupSystemModel()
Agent lookupAgent(String agentName)
Collection getModels()
Collection getConnectors()
Collection getEndpoints()
Collection getAgents()
Collection getTransformers()
void registerObject(String key, Object value) throws RegistrationException
RegistrationException
void registerObject(String key, Object value, Object metadata) throws RegistrationException
RegistrationException
void registerObjects(Map objects) throws RegistrationException
RegistrationException
void unregisterObject(String key) throws MuleException
MuleException
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 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
ServiceDescriptor lookupServiceDescriptor(String type, String name, Properties overrides) throws ServiceException
ServiceException
Registry getParent()
void setParent(Registry registry)
String getRegistryId()
boolean isReadOnly()
boolean isRemote()
void setDefaultScope(int scope)
int getDefaultScope()
boolean isInitialised()
boolean isInitialising()
boolean isDisposed()
boolean isDisposing()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |