|
||||||||||
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(java.lang.String phase)
|
|
|
get(java.lang.String key)
Alias method performing the lookup, here to simplify syntax when called from dynamic languages. |
|
java.lang.String |
getRegistryId()
|
|
boolean |
isReadOnly()
|
|
boolean |
isRemote()
|
|
|
lookupByType(java.lang.Class<T> type)
|
|
|
lookupObject(java.lang.Class<T> clazz)
Look up a single object by type. |
|
|
lookupObject(java.lang.String key)
Look up a single object by name. |
|
|
lookupObjects(java.lang.Class<T> type)
Look up all objects of a given type. |
|
void |
registerObject(java.lang.String key,
java.lang.Object value)
Registers an object in the registry with a key. |
|
void |
registerObject(java.lang.String key,
java.lang.Object value,
java.lang.Object metadata)
Registers an object in the registry with a key. |
|
void |
registerObjects(java.util.Map<java.lang.String,java.lang.Object> objects)
Registers a Map of objects into the registry |
|
void |
unregisterObject(java.lang.String key)
Will remove an object by name from the registry. |
|
void |
unregisterObject(java.lang.String key,
java.lang.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(java.lang.String key)
<T> T lookupObject(java.lang.String key)
<T> java.util.Collection<T> lookupObjects(java.lang.Class<T> type)
<T> T lookupObject(java.lang.Class<T> clazz) throws RegistrationException
RegistrationException
- if more than one object is found.<T> java.util.Map<java.lang.String,T> lookupByType(java.lang.Class<T> type)
void registerObject(java.lang.String key, java.lang.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 existsvoid registerObject(java.lang.String key, java.lang.Object value, java.lang.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 existsvoid registerObjects(java.util.Map<java.lang.String,java.lang.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 existsvoid unregisterObject(java.lang.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 exceptionvoid unregisterObject(java.lang.String key, java.lang.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 exceptionjava.lang.String getRegistryId()
void fireLifecycle(java.lang.String phase) throws LifecycleException
LifecycleException
boolean isReadOnly()
boolean isRemote()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |