org.mule.config.spring
Class SpringRegistry

java.lang.Object
  extended by org.mule.registry.AbstractRegistry
      extended by org.mule.config.spring.SpringRegistry
All Implemented Interfaces:
Disposable, Initialisable, Registry

public class SpringRegistry
extends AbstractRegistry


Field Summary
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.
 
Fields inherited from class org.mule.registry.AbstractRegistry
exactTransformerCache, lifecycleManager, logger, transformerListCache
 
Fields inherited from interface org.mule.api.registry.Registry
DEFAULT_SCOPE, SCOPE_IMMEDIATE, SCOPE_LOCAL, SCOPE_REMOTE
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Disposable
PHASE_NAME
 
Constructor Summary
SpringRegistry()
           
SpringRegistry(org.springframework.context.ConfigurableApplicationContext applicationContext)
           
SpringRegistry(String id)
           
SpringRegistry(String id, org.springframework.context.ConfigurableApplicationContext applicationContext)
           
 
Method Summary
protected  LifecycleManager createLifecycleManager()
           
protected  void doDispose()
           
protected  Object doLookupObject(String key)
           
protected  Collection doLookupObjects(Class type)
           
protected  void doRegisterObject(String key, Object value, Object metadata)
           
protected  void doRegisterTransformer(Transformer transformer)
           
 Collection getAgents()
           
 Collection getConnectors()
          
 Collection getEndpoints()
          
 Collection getModels()
           
 TransactionManager getTransactionManager()
          
 Collection getTransformers()
          
 boolean isReadOnly()
           
 boolean isRemote()
           
 ServiceDescriptor lookupServiceDescriptor(String type, String name, Properties overrides)
           
 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 setConfiguration(MuleConfiguration config)
           
 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 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
 

Field Detail

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
Constructor Detail

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)
Method Detail

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.