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 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.ApplicationContext applicationContext
springContextInitialised
protected AtomicBoolean springContextInitialised
SpringRegistry
public SpringRegistry(MuleContext muleContext)
SpringRegistry
public SpringRegistry(String id,
MuleContext muleContext)
SpringRegistry
public SpringRegistry(org.springframework.context.ApplicationContext applicationContext,
MuleContext muleContext)
SpringRegistry
public SpringRegistry(String id,
org.springframework.context.ApplicationContext applicationContext,
MuleContext muleContext)
SpringRegistry
public SpringRegistry(org.springframework.context.ConfigurableApplicationContext applicationContext,
org.springframework.context.ApplicationContext parentContext,
MuleContext muleContext)
SpringRegistry
public SpringRegistry(String id,
org.springframework.context.ConfigurableApplicationContext applicationContext,
org.springframework.context.ApplicationContext parentContext,
MuleContext muleContext)
doInitialise
protected void doInitialise()
throws InitialisationException
- Specified by:
doInitialise in class AbstractRegistry
- Throws:
InitialisationException
doDispose
public void doDispose()
- Specified by:
doDispose in class AbstractRegistry
createLifecycleManager
protected RegistryLifecycleManager createLifecycleManager()
- Overrides:
createLifecycleManager in class AbstractRegistry
lookupObject
public Object lookupObject(String key)
lookupObjects
public <T> Collection<T> lookupObjects(Class<T> type)
lookupObjectsForLifecycle
public <T> Collection<T> lookupObjectsForLifecycle(Class<T> type)
- For lifecycle we only want spring to return singleton objects from it's application context
- Specified by:
lookupObjectsForLifecycle in interface Registry- Overrides:
lookupObjectsForLifecycle in class AbstractRegistry
lookupByType
public <T> Map<String,T> lookupByType(Class<T> type)
internalLookupByType
protected <T> Map<String,T> internalLookupByType(Class<T> type,
boolean nonSingletons,
boolean eagerInit)
registerObject
public void registerObject(String key,
Object value)
throws RegistrationException
- Throws:
RegistrationException
registerObject
public void registerObject(String key,
Object value,
Object metadata)
throws RegistrationException
- Throws:
RegistrationException
registerObjects
public void registerObjects(Map<String,Object> objects)
throws RegistrationException
- Throws:
RegistrationException
unregisterObject
public void unregisterObject(String key)
unregisterObject
public void unregisterObject(String key,
Object metadata)
throws RegistrationException
- Throws:
RegistrationException
isReadOnly
public boolean isReadOnly()
isRemote
public boolean isRemote()
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.