instead
.@Deprecated public class TransientRegistry extends AbstractRegistry
Modifier and Type | Class and Description |
---|---|
protected static class |
TransientRegistry.RegistryMap
Deprecated.
This class encapsulates the
HashMap that's used for storing the objects in the
transient registry and also shields client code from having to deal with locking the
ReadWriteLock for the exposed Map operations. |
Modifier and Type | Field and Description |
---|---|
static String |
REGISTRY_ID
Deprecated.
|
lifecycleManager, logger, muleContext
PHASE_NAME
PHASE_NAME
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, unregisterObject
public static final String REGISTRY_ID
public TransientRegistry(MuleContext muleContext)
public TransientRegistry(String id, MuleContext muleContext)
protected void doInitialise() throws InitialisationException
doInitialise
in class AbstractRegistry
InitialisationException
protected void doDispose()
doDispose
in class AbstractRegistry
protected Map<String,Object> applyProcessors(Map<String,Object> objects)
public void registerObjects(Map<String,Object> objects) throws RegistrationException
Registry
objects
- 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)
Registry
public <T> T lookupObject(Class<T> type) throws RegistrationException
Registry
lookupObject
in interface Registry
lookupObject
in class AbstractRegistry
RegistrationException
- if more than one object is found.public <T> Collection<T> lookupObjects(Class<T> returntype)
Registry
public <T> Collection<T> lookupLocalObjects(Class<T> type)
Registry
public 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
RegistrationException
protected void checkDisposed() throws RegistrationException
RegistrationException
protected boolean hasFlag(Object metaData, int flag)
protected Object doUnregisterObject(String key) throws RegistrationException
AbstractRegistry
AbstractRegistry.unregisterObject(String)
doUnregisterObject
in class AbstractRegistry
key
- the key of the object to be unregistered objectkey
RegistrationException
public boolean isReadOnly()
public boolean isRemote()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.