org.mule.api.registry
Interface Registry
- All Superinterfaces:
- Disposable, Initialisable
- All Known Subinterfaces:
- MuleRegistry, RegistryBroker
- All Known Implementing Classes:
- AbstractRegistry, AbstractRegistryBroker, DefaultRegistryBroker, MuleRegistryHelper, SpringRegistry, TransientRegistry
public interface Registry
- extends Initialisable, Disposable
lookupObject
Object lookupObject(String key)
- Look up a single object by name.
- Returns:
- object or null if not found
lookupObjects
Collection lookupObjects(Class type)
- Look up all objects of a given type.
- Returns:
- collection of objects or empty collection if none found
lookupObject
Object lookupObject(Class type)
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.
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 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()
isReadOnly
boolean isReadOnly()
isRemote
boolean isRemote()
Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.