|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Registry
| Field Summary |
|---|
| Fields inherited from interface org.mule.api.lifecycle.Initialisable |
|---|
PHASE_NAME |
| Fields inherited from interface org.mule.api.lifecycle.Disposable |
|---|
PHASE_NAME |
| Method Summary | ||
|---|---|---|
void |
fireLifecycle(String phase)
|
|
|
get(String key)
Alias method performing the lookup, here to simplify syntax when called from dynamic languages. |
|
String |
getRegistryId()
|
|
boolean |
isReadOnly()
|
|
boolean |
isRemote()
|
|
|
lookupByType(Class<T> type)
|
|
|
lookupObject(Class<T> clazz)
Look up a single object by type. |
|
|
lookupObject(String key)
Look up a single object by name. |
|
|
lookupObjects(Class<T> type)
Look up all objects of a given type. |
|
void |
registerObject(String key,
Object value)
Registers an object in the registry with a key. |
|
void |
registerObject(String key,
Object value,
Object metadata)
Registers an object in the registry with a key. |
|
void |
registerObjects(Map<String,Object> objects)
Registers a Map of objects into the registry |
|
void |
unregisterObject(String key)
Will remove an object by name from the registry. |
|
void |
unregisterObject(String key,
Object metadata)
Will remove an object by name from the registry. |
|
| Methods inherited from interface org.mule.api.lifecycle.Initialisable |
|---|
initialise |
| Methods inherited from interface org.mule.api.lifecycle.Disposable |
|---|
dispose |
| Method Detail |
|---|
<T> T get(String key)
<T> T lookupObject(String key)
<T> Collection<T> lookupObjects(Class<T> type)
<T> T lookupObject(Class<T> clazz)
throws RegistrationException
RegistrationException - if more than one object is found.<T> Map<String,T> lookupByType(Class<T> type)
void registerObject(String key,
Object value)
throws RegistrationException
key - the key to store the value against. This is a non-null valuevalue - the object to store in the registry. This is a non-null value
RegistrationException - if an object with the same key already exists
void registerObject(String key,
Object value,
Object metadata)
throws RegistrationException
key - the key to store the value against. This is a non-null valuevalue - the object to store in the registry. This is a non-null valuemetadata - an implementation specific argument that can be passed into the method
RegistrationException - if an object with the same key already exists
void registerObjects(Map<String,Object> objects)
throws RegistrationException
objects - a map of key value pairs, each will individually be registered in the registry
RegistrationException - if an object with the same key already exists
void unregisterObject(String key)
throws RegistrationException
key - the name or key of the object to remove from the registry
RegistrationException - if there is a problem unregistering the object. Typically this will be because
the object's lifecycle threw an exception
void unregisterObject(String key,
Object metadata)
throws RegistrationException
key - the name or key of the object to remove from the registrymetadata - an implementation specific argument that can be passed into the method
RegistrationException - if there is a problem unregistering the object. Typically this will be because
the object's lifecycle threw an exceptionString getRegistryId()
void fireLifecycle(String phase)
throws LifecycleException
LifecycleExceptionboolean isReadOnly()
boolean isRemote()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||