public class TransientRegistry extends AbstractRegistry
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger
logger used by this class
|
static String |
REGISTRY_ID |
exactTransformerCache, lifecycleManager, transformerListCacheDEFAULT_SCOPE, SCOPE_IMMEDIATE, SCOPE_LOCAL, SCOPE_REMOTEPHASE_NAMEPHASE_NAME| Constructor and Description |
|---|
TransientRegistry() |
TransientRegistry(Registry parent) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyProcessors(Map objects) |
protected Object |
applyProcessors(Object object) |
protected LifecycleManager |
createLifecycleManager() |
protected ServiceDescriptor |
createServiceDescriptor(String type,
String name,
Properties overrides) |
protected void |
doInitialise() |
protected Object |
doLookupObject(String key) |
Collection |
doLookupObjects(Class returntype) |
protected void |
doRegisterObject(String key,
Object value)
Allows for arbitary registration of transient objects
|
protected void |
doRegisterObject(String key,
Object object,
Object metadata)
Allows for arbitary registration of transient objects
|
protected void |
doRegisterTransformer(Transformer transformer) |
protected Map |
getObjectTypeMap(Object o) |
boolean |
isReadOnly() |
boolean |
isRemote() |
ServiceDescriptor |
lookupServiceDescriptor(String type,
String name,
Properties overrides)
Looks up the service descriptor from a singleton cache and creates a new one if not found.
|
Transformer |
lookupTransformer(String name) |
void |
registerAgent(Agent agent) |
void |
registerConnector(Connector connector) |
void |
registerEndpoint(ImmutableEndpoint endpoint) |
void |
registerEndpointBuilder(String name,
EndpointBuilder builder) |
void |
registerModel(Model model) |
void |
registerObjects(Map objects) |
void |
registerService(Service service) |
void |
unregisterAgent(String agentName) |
void |
unregisterConnector(String connectorName) |
void |
unregisterEndpoint(String endpointName) |
void |
unregisterModel(String modelName) |
void |
unregisterObject(String key) |
protected void |
unregisterObject(String key,
Object metadata) |
void |
unregisterService(String serviceName) |
void |
unregisterTransformer(String transformerName) |
dispose, doDispose, getAgents, getConnectors, getDefaultScope, getEndpoints, getLifecycleManager, getModels, getNearestTransformerMatch, getParent, getRegistryId, getTransformers, initialise, isDisposed, isDisposing, isInitialised, isInitialising, lookupAgent, lookupConnector, lookupEndpoint, lookupEndpointBuilder, lookupEndpointFactory, lookupModel, lookupObject, lookupObject, lookupObject, lookupObject, lookupObjects, lookupObjects, lookupService, lookupServices, lookupServices, lookupSystemModel, lookupTransformer, lookupTransformers, registerObject, registerObject, registerTransformer, setDefaultScope, setParent, unsupportedOperationprotected final transient org.apache.commons.logging.Log logger
public static final String REGISTRY_ID
public TransientRegistry()
public TransientRegistry(Registry parent)
protected LifecycleManager createLifecycleManager()
createLifecycleManager in class AbstractRegistryprotected void doInitialise()
throws InitialisationException
doInitialise in class AbstractRegistryInitialisationExceptionprotected void applyProcessors(Map objects)
public void registerObjects(Map objects) throws RegistrationException
RegistrationExceptionprotected Object doLookupObject(String key)
doLookupObject in class AbstractRegistrypublic Collection doLookupObjects(Class returntype)
doLookupObjects in class AbstractRegistrypublic ServiceDescriptor lookupServiceDescriptor(String type, String name, Properties overrides) throws ServiceException
ServiceExceptionprotected ServiceDescriptor createServiceDescriptor(String type, String name, Properties overrides) throws ServiceException
ServiceExceptionprotected void doRegisterObject(String key, Object value) throws RegistrationException
key - value - RegistrationExceptionprotected void doRegisterObject(String key, Object object, Object metadata) throws RegistrationException
doRegisterObject in class AbstractRegistrykey - value - RegistrationExceptionpublic void registerAgent(Agent agent) throws MuleException
MuleExceptionpublic void registerConnector(Connector connector) throws MuleException
MuleExceptionpublic void registerEndpoint(ImmutableEndpoint endpoint) throws MuleException
MuleExceptionpublic void registerEndpointBuilder(String name, EndpointBuilder builder) throws MuleException
MuleExceptionpublic void registerModel(Model model) throws MuleException
MuleExceptionprotected void doRegisterTransformer(Transformer transformer) throws MuleException
doRegisterTransformer in class AbstractRegistryMuleExceptionpublic void registerService(Service service) throws MuleException
MuleExceptionprotected void unregisterObject(String key, Object metadata) throws MuleException
MuleExceptionpublic void unregisterObject(String key) throws MuleException
MuleExceptionpublic void unregisterService(String serviceName) throws MuleException
MuleExceptionpublic void unregisterAgent(String agentName) throws MuleException
MuleExceptionpublic void unregisterConnector(String connectorName) throws MuleException
MuleExceptionpublic void unregisterEndpoint(String endpointName) throws MuleException
MuleExceptionpublic void unregisterModel(String modelName) throws MuleException
MuleExceptionpublic void unregisterTransformer(String transformerName) throws MuleException
MuleExceptionpublic Transformer lookupTransformer(String name)
lookupTransformer in interface RegistrylookupTransformer in class AbstractRegistrypublic boolean isReadOnly()
public boolean isRemote()
Copyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.