instead.@Deprecated public class TransientRegistry extends AbstractRegistry
| Modifier and Type | Field and Description |
|---|---|
static String |
REGISTRY_ID
Deprecated.
|
lifecycleManager, logger, muleContext| Constructor and Description |
|---|
TransientRegistry(MuleContext muleContext)
Deprecated.
|
TransientRegistry(String id,
MuleContext muleContext)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
applyProcessors(Map<String,Object> objects)
Deprecated.
|
protected Object |
applyProcessors(Object object,
Object metadata)
Deprecated.
|
protected void |
checkDisposed()
Deprecated.
|
protected void |
doDispose()
Deprecated.
|
protected <T> T |
doGet(String key)
Deprecated.
|
protected void |
doInitialise()
Deprecated.
|
protected void |
doPut(String key,
Object object)
Deprecated.
|
protected void |
doRegisterObject(String key,
Object object,
Object metadata)
Deprecated.
|
protected Object |
doUnregisterObject(String key)
Deprecated.
Template method for the logic to actually unregister the key without applying any lifecycle to it.
|
protected boolean |
hasFlag(Object metaData,
int flag)
Deprecated.
|
boolean |
isReadOnly()
Deprecated.
|
boolean |
isRemote()
Deprecated.
|
<T> Map<String,T> |
lookupByType(Class<T> type)
Deprecated.
|
<T> Collection<T> |
lookupLocalObjects(Class<T> type)
Deprecated.
Look up all objects of a given type within the local registry.
|
<T> T |
lookupObject(Class<T> type)
Deprecated.
Look up a single object by type.
|
<T> T |
lookupObject(String key)
Deprecated.
Look up a single object by name.
|
<T> Collection<T> |
lookupObjects(Class<T> returntype)
Deprecated.
Look up all objects of a given type.
|
void |
registerObject(String key,
Object value)
Deprecated.
Allows for arbitary registration of transient objects
|
void |
registerObject(String key,
Object object,
Object metadata)
Deprecated.
Allows for arbitrary registration of transient objects
|
void |
registerObjects(Map<String,Object> objects)
Deprecated.
Registers a Map of objects into the registry
|
createLifecycleManager, dispose, fireLifecycle, get, getLifecycleManager, getRegistryId, initialise, isInitialised, lookupObjectsForLifecycle, unregisterObject, unregisterObjectpublic static final String REGISTRY_ID
public TransientRegistry(MuleContext muleContext)
public TransientRegistry(String id, MuleContext muleContext)
protected void doInitialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
doInitialise in class AbstractRegistryorg.mule.runtime.api.lifecycle.InitialisationExceptionprotected void doDispose()
doDispose in class AbstractRegistryprotected Map<String,Object> applyProcessors(Map<String,Object> objects)
public void registerObjects(Map<String,Object> objects) throws RegistrationException
Registryobjects - a map of key value pairs, each will individually be registered in the registryRegistrationException - if an object with the same key already existspublic <T> Map<String,T> lookupByType(Class<T> type)
public <T> T lookupObject(String key)
Registrypublic <T> T lookupObject(Class<T> type) throws RegistrationException
RegistrylookupObject in interface RegistrylookupObject in class AbstractRegistryRegistrationException - if more than one object is found.public <T> Collection<T> lookupObjects(Class<T> returntype)
Registrypublic <T> Collection<T> lookupLocalObjects(Class<T> type)
Registrypublic void registerObject(String key, Object value) throws RegistrationException
key - value - RegistrationException - if an object with the same key already existspublic void registerObject(String key, Object object, Object metadata) throws RegistrationException
key - the key to store the value against. This is a non-null valueobject - the object to store in the registry. This is a non-null valuemetadata - an implementation specific argument that can be passed into the methodRegistrationException - if an object with the same key already existsprotected <T> T doGet(String key)
protected void doRegisterObject(String key, Object object, Object metadata) throws RegistrationException
RegistrationExceptionprotected void checkDisposed()
throws RegistrationException
RegistrationExceptionprotected boolean hasFlag(Object metaData, int flag)
protected Object doUnregisterObject(String key) throws RegistrationException
AbstractRegistryAbstractRegistry.unregisterObject(String)doUnregisterObject in class AbstractRegistrykey - the key of the object to be unregistered objectkeyRegistrationExceptionpublic boolean isReadOnly()
public boolean isRemote()
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.