|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.registry.AbstractRegistryBroker
public abstract class AbstractRegistryBroker
| Field Summary |
|---|
| Fields inherited from interface org.mule.api.lifecycle.Initialisable |
|---|
PHASE_NAME |
| Fields inherited from interface org.mule.api.lifecycle.Disposable |
|---|
PHASE_NAME |
| Constructor Summary | |
|---|---|
AbstractRegistryBroker()
|
|
| Method Summary | ||
|---|---|---|
void |
dispose()
A lifecycle method where implementor should free up any resources. |
|
void |
fireLifecycle(String phase)
|
|
|
get(String key)
Alias method performing the lookup, here to simplify syntax when called from dynamic languages. |
|
protected abstract Collection<Registry> |
getRegistries()
|
|
String |
getRegistryId()
|
|
void |
initialise()
Method used to perform any initialisation work. |
|
boolean |
isReadOnly()
|
|
boolean |
isRemote()
|
|
|
lookupByType(Class<T> type)
|
|
|
lookupObject(Class<T> type)
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)
|
|
void |
registerObject(String key,
Object value,
Object metadata)
|
|
void |
registerObjects(Map objects)
|
|
void |
unregisterObject(String key)
|
|
void |
unregisterObject(String key,
Object metadata)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.mule.api.registry.RegistryBroker |
|---|
addRegistry, removeRegistry |
| Constructor Detail |
|---|
public AbstractRegistryBroker()
| Method Detail |
|---|
public void initialise()
throws InitialisationException
InitialisableInitialisationException should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.
initialise in interface InitialisableInitialisationException - if a fatal error occurs causing the Mule instance to shutdown
RecoverableException - if an error occurs that can be recovered frompublic void dispose()
Disposable
dispose in interface Disposable
public void fireLifecycle(String phase)
throws MuleException
fireLifecycle in interface RegistryMuleExceptionpublic String getRegistryId()
getRegistryId in interface Registrypublic boolean isReadOnly()
isReadOnly in interface Registrypublic boolean isRemote()
isRemote in interface Registryprotected abstract Collection<Registry> getRegistries()
public <T> T get(String key)
Registry
get in interface Registrypublic <T> T lookupObject(String key)
Registry
lookupObject in interface Registry
public <T> T lookupObject(Class<T> type)
throws RegistrationException
Registry
lookupObject in interface RegistryRegistrationException - if more than one object is found.public <T> Collection<T> lookupObjects(Class<T> type)
Registry
lookupObjects in interface Registrypublic <T> Map<String,T> lookupByType(Class<T> type)
lookupByType in interface Registry
public void registerObject(String key,
Object value)
throws RegistrationException
registerObject in interface RegistryRegistrationException
public void registerObject(String key,
Object value,
Object metadata)
throws RegistrationException
registerObject in interface RegistryRegistrationException
public void registerObjects(Map objects)
throws RegistrationException
registerObjects in interface RegistryRegistrationException
public void unregisterObject(String key)
throws RegistrationException
unregisterObject in interface RegistryRegistrationException
public void unregisterObject(String key,
Object metadata)
throws RegistrationException
unregisterObject in interface RegistryRegistrationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||