org.mule.api.registry
Interface Registry
- All Superinterfaces:
- Disposable, Initialisable
- All Known Subinterfaces:
- MuleRegistry, RegistryBroker
- All Known Implementing Classes:
- AbstractRegistry, AbstractRegistryBroker, DefaultRegistryBroker, GuiceRegistry, MuleRegistryHelper, SpringRegistry, TransientRegistry
public interface Registry
- extends Initialisable, Disposable
get
<T> T get(String key)
- Alias method performing the lookup, here to simplify syntax when called from dynamic languages.
lookupObject
<T> T lookupObject(String key)
- Look up a single object by name.
- Returns:
- object or null if not found
lookupObjects
<T> Collection<T> lookupObjects(Class<T> type)
- Look up all objects of a given type.
- Returns:
- collection of objects or empty collection if none found
lookupObject
<T> T lookupObject(Class<T> clazz)
throws RegistrationException
- Look up a single object by type.
- Returns:
- object or null if not found
- Throws:
RegistrationException - if more than one object is found.
lookupByType
<T> Map<String,T> lookupByType(Class<T> type)
- Returns:
- key/object pairs
registerObject
void registerObject(String key,
Object value)
throws RegistrationException
- Throws:
RegistrationException
registerObject
void registerObject(String key,
Object value,
Object metadata)
throws RegistrationException
- Throws:
RegistrationException
registerObjects
void registerObjects(Map<String,Object> objects)
throws RegistrationException
- Throws:
RegistrationException
unregisterObject
void unregisterObject(String key)
throws RegistrationException
- Throws:
RegistrationException
unregisterObject
void unregisterObject(String key,
Object metadata)
throws RegistrationException
- Throws:
RegistrationException
getRegistryId
String getRegistryId()
fireLifecycle
void fireLifecycle(String phase)
throws MuleException
- Throws:
MuleException
isReadOnly
boolean isReadOnly()
isRemote
boolean isRemote()
Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.