org.mule.registry
Class TransientRegistry

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

public class TransientRegistry
extends AbstractRegistry


Field Summary
protected  Log logger
          logger used by this class
static String REGISTRY_ID
           
 
Fields inherited from class org.mule.registry.AbstractRegistry
exactTransformerCache, lifecycleManager, 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
TransientRegistry()
           
TransientRegistry(Registry parent)
           
 
Method Summary
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)
           
 
Methods inherited from class org.mule.registry.AbstractRegistry
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final transient Log logger
logger used by this class


REGISTRY_ID

public static final String REGISTRY_ID
See Also:
Constant Field Values
Constructor Detail

TransientRegistry

public TransientRegistry()

TransientRegistry

public TransientRegistry(Registry parent)
Method Detail

createLifecycleManager

protected LifecycleManager createLifecycleManager()
Specified by:
createLifecycleManager in class AbstractRegistry

doInitialise

protected void doInitialise()
                     throws InitialisationException
Overrides:
doInitialise in class AbstractRegistry
Throws:
InitialisationException

applyProcessors

protected void applyProcessors(Map objects)

registerObjects

public void registerObjects(Map objects)
                     throws RegistrationException
Throws:
RegistrationException

doLookupObject

protected Object doLookupObject(String key)
Specified by:
doLookupObject in class AbstractRegistry
Returns:
null if object not found

doLookupObjects

public Collection doLookupObjects(Class returntype)
Specified by:
doLookupObjects in class AbstractRegistry

lookupServiceDescriptor

public ServiceDescriptor lookupServiceDescriptor(String type,
                                                 String name,
                                                 Properties overrides)
                                          throws ServiceException
Looks up the service descriptor from a singleton cache and creates a new one if not found.

Throws:
ServiceException

createServiceDescriptor

protected ServiceDescriptor createServiceDescriptor(String type,
                                                    String name,
                                                    Properties overrides)
                                             throws ServiceException
Throws:
ServiceException

getObjectTypeMap

protected Map getObjectTypeMap(Object o)

applyProcessors

protected Object applyProcessors(Object object)

doRegisterObject

protected void doRegisterObject(String key,
                                Object value)
                         throws RegistrationException
Allows for arbitary registration of transient objects

Parameters:
key -
value -
Throws:
RegistrationException

doRegisterObject

protected void doRegisterObject(String key,
                                Object object,
                                Object metadata)
                         throws RegistrationException
Allows for arbitary registration of transient objects

Specified by:
doRegisterObject in class AbstractRegistry
Parameters:
key -
value -
Throws:
RegistrationException

registerAgent

public void registerAgent(Agent agent)
                   throws MuleException
Throws:
MuleException

registerConnector

public void registerConnector(Connector connector)
                       throws MuleException
Throws:
MuleException

registerEndpoint

public void registerEndpoint(ImmutableEndpoint endpoint)
                      throws MuleException
Throws:
MuleException

registerEndpointBuilder

public void registerEndpointBuilder(String name,
                                    EndpointBuilder builder)
                             throws MuleException
Throws:
MuleException

registerModel

public void registerModel(Model model)
                   throws MuleException
Throws:
MuleException

doRegisterTransformer

protected void doRegisterTransformer(Transformer transformer)
                              throws MuleException
Specified by:
doRegisterTransformer in class AbstractRegistry
Throws:
MuleException

registerService

public void registerService(Service service)
                     throws MuleException
Throws:
MuleException

unregisterObject

protected void unregisterObject(String key,
                                Object metadata)
                         throws MuleException
Throws:
MuleException

unregisterObject

public void unregisterObject(String key)
                      throws MuleException
Throws:
MuleException

unregisterService

public void unregisterService(String serviceName)
                       throws MuleException
Throws:
MuleException

unregisterAgent

public void unregisterAgent(String agentName)
                     throws MuleException
Throws:
MuleException

unregisterConnector

public void unregisterConnector(String connectorName)
                         throws MuleException
Throws:
MuleException

unregisterEndpoint

public void unregisterEndpoint(String endpointName)
                        throws MuleException
Throws:
MuleException

unregisterModel

public void unregisterModel(String modelName)
                     throws MuleException
Throws:
MuleException

unregisterTransformer

public void unregisterTransformer(String transformerName)
                           throws MuleException
Throws:
MuleException

lookupTransformer

public Transformer lookupTransformer(String name)
Specified by:
lookupTransformer in interface Registry
Overrides:
lookupTransformer in class AbstractRegistry

isReadOnly

public boolean isReadOnly()

isRemote

public boolean isRemote()


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.