public class SpringRegistry extends AbstractRegistry
Modifier and Type | Field and Description |
---|---|
protected org.springframework.context.ConfigurableApplicationContext |
applicationContext |
static String |
REGISTRY_ID |
static String |
SPRING_APPLICATION_CONTEXT
Key used to lookup Spring Application Context from SpringRegistry via Mule's
Registry interface.
|
exactTransformerCache, lifecycleManager, logger, transformerListCache
DEFAULT_SCOPE, SCOPE_IMMEDIATE, SCOPE_LOCAL, SCOPE_REMOTE
PHASE_NAME
PHASE_NAME
Constructor and Description |
---|
SpringRegistry() |
SpringRegistry(org.springframework.context.ConfigurableApplicationContext applicationContext) |
SpringRegistry(String id) |
SpringRegistry(String id,
org.springframework.context.ConfigurableApplicationContext applicationContext) |
dispose, doInitialise, getDefaultScope, getLifecycleManager, getNearestTransformerMatch, getParent, getRegistryId, initialise, isDisposed, isDisposing, isInitialised, isInitialising, lookupAgent, lookupConnector, lookupEndpoint, lookupEndpointBuilder, lookupEndpointFactory, lookupModel, lookupObject, lookupObject, lookupObject, lookupObject, lookupObjects, lookupObjects, lookupService, lookupServices, lookupServices, lookupSystemModel, lookupTransformer, lookupTransformer, lookupTransformers, registerObject, registerObject, registerTransformer, setDefaultScope, setParent, unsupportedOperation
public static final String REGISTRY_ID
public static final String SPRING_APPLICATION_CONTEXT
protected org.springframework.context.ConfigurableApplicationContext applicationContext
public SpringRegistry()
public SpringRegistry(String id)
public SpringRegistry(org.springframework.context.ConfigurableApplicationContext applicationContext)
public SpringRegistry(String id, org.springframework.context.ConfigurableApplicationContext applicationContext)
protected LifecycleManager createLifecycleManager()
createLifecycleManager
in class AbstractRegistry
protected Object doLookupObject(String key)
doLookupObject
in class AbstractRegistry
protected Collection doLookupObjects(Class type)
doLookupObjects
in class AbstractRegistry
public ServiceDescriptor lookupServiceDescriptor(String type, String name, Properties overrides) throws ServiceException
ServiceException
public TransactionManager getTransactionManager()
public Collection getModels()
getModels
in interface Registry
getModels
in class AbstractRegistry
public Collection getConnectors()
getConnectors
in interface Registry
getConnectors
in class AbstractRegistry
public Collection getAgents()
getAgents
in interface Registry
getAgents
in class AbstractRegistry
public Collection getEndpoints()
getEndpoints
in interface Registry
getEndpoints
in class AbstractRegistry
public Collection getTransformers()
getTransformers
in interface Registry
getTransformers
in class AbstractRegistry
public boolean isReadOnly()
public boolean isRemote()
public void registerConnector(Connector connector) throws MuleException
MuleException
public void unregisterConnector(String connectorName) throws MuleException
MuleException
public void registerEndpoint(ImmutableEndpoint endpoint) throws MuleException
MuleException
public void unregisterEndpoint(String endpointName)
protected void doRegisterTransformer(Transformer transformer) throws MuleException
doRegisterTransformer
in class AbstractRegistry
MuleException
public void unregisterTransformer(String transformerName)
public void registerService(Service service) throws MuleException
MuleException
public void unregisterService(String serviceName)
public void registerModel(Model model) throws MuleException
MuleException
public void unregisterModel(String modelName)
public void registerAgent(Agent agent) throws MuleException
MuleException
public void unregisterAgent(String agentName) throws MuleException
MuleException
protected void doRegisterObject(String key, Object value, Object metadata) throws RegistrationException
doRegisterObject
in class AbstractRegistry
RegistrationException
public void unregisterObject(String key)
public void registerObjects(Map objects) throws RegistrationException
RegistrationException
public void setConfiguration(MuleConfiguration config)
public void registerEndpointBuilder(String name, EndpointBuilder builder) throws MuleException
MuleException
protected void doDispose()
doDispose
in class AbstractRegistry
Copyright © 2003–2013 MuleSource, Inc.. All rights reserved.