org.mule.config.spring
Class SpringRegistry
java.lang.Object
org.mule.registry.AbstractRegistry
org.mule.config.spring.SpringRegistry
- All Implemented Interfaces:
- Disposable, Initialisable, Registry
public class SpringRegistry
- extends AbstractRegistry
Methods inherited from class org.mule.registry.AbstractRegistry |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REGISTRY_ID
public static final String REGISTRY_ID
- See Also:
- Constant Field Values
SPRING_APPLICATION_CONTEXT
public static final String SPRING_APPLICATION_CONTEXT
- Key used to lookup Spring Application Context from SpringRegistry via Mule's
Registry interface.
- See Also:
- Constant Field Values
applicationContext
protected org.springframework.context.ConfigurableApplicationContext applicationContext
SpringRegistry
public SpringRegistry()
SpringRegistry
public SpringRegistry(String id)
SpringRegistry
public SpringRegistry(org.springframework.context.ConfigurableApplicationContext applicationContext)
SpringRegistry
public SpringRegistry(String id,
org.springframework.context.ConfigurableApplicationContext applicationContext)
createLifecycleManager
protected LifecycleManager createLifecycleManager()
- Specified by:
createLifecycleManager
in class AbstractRegistry
doLookupObject
protected Object doLookupObject(String key)
- Specified by:
doLookupObject
in class AbstractRegistry
- Returns:
- null if object not found
doLookupObjects
protected Collection doLookupObjects(Class type)
- Specified by:
doLookupObjects
in class AbstractRegistry
lookupServiceDescriptor
public ServiceDescriptor lookupServiceDescriptor(String type,
String name,
Properties overrides)
throws ServiceException
- Throws:
ServiceException
getTransactionManager
public TransactionManager getTransactionManager()
-
getModels
public Collection getModels()
- Specified by:
getModels
in interface Registry
- Overrides:
getModels
in class AbstractRegistry
getConnectors
public Collection getConnectors()
-
- Specified by:
getConnectors
in interface Registry
- Overrides:
getConnectors
in class AbstractRegistry
getAgents
public Collection getAgents()
- Specified by:
getAgents
in interface Registry
- Overrides:
getAgents
in class AbstractRegistry
getEndpoints
public Collection getEndpoints()
-
- Specified by:
getEndpoints
in interface Registry
- Overrides:
getEndpoints
in class AbstractRegistry
getTransformers
public Collection getTransformers()
-
- Specified by:
getTransformers
in interface Registry
- Overrides:
getTransformers
in class AbstractRegistry
isReadOnly
public boolean isReadOnly()
isRemote
public boolean isRemote()
registerConnector
public void registerConnector(Connector connector)
throws MuleException
- Throws:
MuleException
unregisterConnector
public void unregisterConnector(String connectorName)
throws MuleException
- Throws:
MuleException
registerEndpoint
public void registerEndpoint(ImmutableEndpoint endpoint)
throws MuleException
- Throws:
MuleException
unregisterEndpoint
public void unregisterEndpoint(String endpointName)
doRegisterTransformer
protected void doRegisterTransformer(Transformer transformer)
throws MuleException
- Specified by:
doRegisterTransformer
in class AbstractRegistry
- Throws:
MuleException
unregisterTransformer
public void unregisterTransformer(String transformerName)
registerService
public void registerService(Service service)
throws MuleException
-
- Throws:
MuleException
unregisterService
public void unregisterService(String serviceName)
registerModel
public void registerModel(Model model)
throws MuleException
- Throws:
MuleException
unregisterModel
public void unregisterModel(String modelName)
registerAgent
public void registerAgent(Agent agent)
throws MuleException
- Throws:
MuleException
unregisterAgent
public void unregisterAgent(String agentName)
throws MuleException
- Throws:
MuleException
doRegisterObject
protected void doRegisterObject(String key,
Object value,
Object metadata)
throws RegistrationException
- Specified by:
doRegisterObject
in class AbstractRegistry
- Throws:
RegistrationException
unregisterObject
public void unregisterObject(String key)
registerObjects
public void registerObjects(Map objects)
throws RegistrationException
- Throws:
RegistrationException
setConfiguration
public void setConfiguration(MuleConfiguration config)
registerEndpointBuilder
public void registerEndpointBuilder(String name,
EndpointBuilder builder)
throws MuleException
- Throws:
MuleException
doDispose
protected void doDispose()
- Overrides:
doDispose
in class AbstractRegistry
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.