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, transformerListCache
DEFAULT_SCOPE, SCOPE_IMMEDIATE, SCOPE_LOCAL, SCOPE_REMOTE
PHASE_NAME
PHASE_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, unsupportedOperation
protected 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 AbstractRegistry
protected void doInitialise() throws InitialisationException
doInitialise
in class AbstractRegistry
InitialisationException
protected void applyProcessors(Map objects)
public void registerObjects(Map objects) throws RegistrationException
RegistrationException
protected Object doLookupObject(String key)
doLookupObject
in class AbstractRegistry
public Collection doLookupObjects(Class returntype)
doLookupObjects
in class AbstractRegistry
public ServiceDescriptor lookupServiceDescriptor(String type, String name, Properties overrides) throws ServiceException
ServiceException
protected ServiceDescriptor createServiceDescriptor(String type, String name, Properties overrides) throws ServiceException
ServiceException
protected void doRegisterObject(String key, Object value) throws RegistrationException
key
- value
- RegistrationException
protected void doRegisterObject(String key, Object object, Object metadata) throws RegistrationException
doRegisterObject
in class AbstractRegistry
key
- value
- RegistrationException
public void registerAgent(Agent agent) throws MuleException
MuleException
public void registerConnector(Connector connector) throws MuleException
MuleException
public void registerEndpoint(ImmutableEndpoint endpoint) throws MuleException
MuleException
public void registerEndpointBuilder(String name, EndpointBuilder builder) throws MuleException
MuleException
public void registerModel(Model model) throws MuleException
MuleException
protected void doRegisterTransformer(Transformer transformer) throws MuleException
doRegisterTransformer
in class AbstractRegistry
MuleException
public void registerService(Service service) throws MuleException
MuleException
protected void unregisterObject(String key, Object metadata) throws MuleException
MuleException
public void unregisterObject(String key) throws MuleException
MuleException
public void unregisterService(String serviceName) throws MuleException
MuleException
public void unregisterAgent(String agentName) throws MuleException
MuleException
public void unregisterConnector(String connectorName) throws MuleException
MuleException
public void unregisterEndpoint(String endpointName) throws MuleException
MuleException
public void unregisterModel(String modelName) throws MuleException
MuleException
public void unregisterTransformer(String transformerName) throws MuleException
MuleException
public Transformer lookupTransformer(String name)
lookupTransformer
in interface Registry
lookupTransformer
in class AbstractRegistry
public boolean isReadOnly()
public boolean isRemote()
Copyright © 2003–2013 MuleSource, Inc.. All rights reserved.