@Deprecated public abstract class AbstractRegistryBroker extends Object implements RegistryBroker, RegistryProvider
| Modifier and Type | Field and Description |
|---|---|
protected RegistryBrokerLifecycleManager |
lifecycleManager
Deprecated.
|
| Constructor and Description |
|---|
AbstractRegistryBroker(MuleContext muleContext)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Deprecated.
|
void |
fireLifecycle(String phase)
Deprecated.
|
<T> T |
get(String key)
Deprecated.
Alias method performing the lookup, here to simplify syntax when called from dynamic languages.
|
String |
getRegistryId()
Deprecated.
|
void |
initialise()
Deprecated.
|
boolean |
isReadOnly()
Deprecated.
|
boolean |
isRemote()
Deprecated.
|
<T> Map<String,T> |
lookupByType(Class<T> type)
Deprecated.
|
<T> Collection<T> |
lookupLocalObjects(Class<T> type)
Deprecated.
Look up all objects of a given type within the local registry.
|
<T> T |
lookupObject(Class<T> type)
Deprecated.
Look up a single object by type.
|
<T> T |
lookupObject(String key)
Deprecated.
Look up a single object by name.
|
<T> T |
lookupObject(String key,
boolean applyLifecycle)
Deprecated.
Iterates through
RegistryProvider.getRegistries() trying to find the first one which is an instance of LifecycleRegistry. |
<T> Collection<T> |
lookupObjects(Class<T> type)
Deprecated.
Look up all objects of a given type.
|
<T> Collection<T> |
lookupObjectsForLifecycle(Class<T> type)
Deprecated.
Look up all objects of a given type that lifecycle should be applied to.
|
void |
registerObject(String key,
Object value)
Deprecated.
Registers an object in the registry with a key.
|
void |
registerObject(String key,
Object value,
Object metadata)
Deprecated.
|
void |
registerObjects(Map objects)
Deprecated.
Registers a Map of objects into the registry
|
Object |
unregisterObject(String key)
Deprecated.
Will remove an object by name from the registry.
|
Object |
unregisterObject(String key,
Object metadata)
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddRegistry, removeRegistrygetRegistriesprotected RegistryBrokerLifecycleManager lifecycleManager
public AbstractRegistryBroker(MuleContext muleContext)
public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic void dispose()
dispose in interface org.mule.runtime.api.lifecycle.Disposablepublic void fireLifecycle(String phase) throws org.mule.runtime.api.lifecycle.LifecycleException
fireLifecycle in interface Registryorg.mule.runtime.api.lifecycle.LifecycleExceptionpublic String getRegistryId()
getRegistryId in interface Registrypublic boolean isReadOnly()
isReadOnly in interface Registrypublic <T> T get(String key)
Registrypublic <T> T lookupObject(String key)
RegistrylookupObject in interface Registrypublic <T> T lookupObject(String key, boolean applyLifecycle)
RegistryProvider.getRegistries() trying to find the first one which is an instance of LifecycleRegistry.
When found, it returns the result of LifecycleRegistry.lookupObject(String, boolean).
If none of the available registries is of that type, then it fallbacks to lookupObject(String)T - the type of the expected objectkey - the key of the object you're looking forapplyLifecycle - whether lifecycle should be applied to the object before returningkeypublic <T> T lookupObject(Class<T> type) throws RegistrationException
RegistrylookupObject in interface RegistryRegistrationException - if more than one object is found.public <T> Collection<T> lookupObjects(Class<T> type)
RegistrylookupObjects in interface Registrypublic <T> Collection<T> lookupLocalObjects(Class<T> type)
RegistrylookupLocalObjects in interface Registrypublic <T> Map<String,T> lookupByType(Class<T> type)
lookupByType in interface Registrypublic <T> Collection<T> lookupObjectsForLifecycle(Class<T> type)
RegistryRegistry.lookupObjects(Class) in that it allows implementations to provide an alternative implementation of lookup for
lifecycle. For example only returning pre-existing objects and not creating new ones on the fly.lookupObjectsForLifecycle in interface Registrypublic void registerObject(String key, Object value) throws RegistrationException
registerObject in interface Registrykey - 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 valueRegistrationException - if an object with the same key already exists@Deprecated public void registerObject(String key, Object value, Object metadata) throws RegistrationException
registerObject in interface Registrykey - 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 methodRegistrationException - if an object with the same key already existspublic void registerObjects(Map objects) throws RegistrationException
registerObjects in interface Registryobjects - a map of key value pairs, each will individually be registered in the registryRegistrationException - if an object with the same key already existspublic Object unregisterObject(String key) throws RegistrationException
unregisterObject in interface Registrykey - the name or key of the object to remove from the registrynull if no object was registered under that keyRegistrationException - if there is a problem unregistering the object. Typically this will be because the object's
lifecycle threw an exception@Deprecated public Object unregisterObject(String key, Object metadata) throws RegistrationException
unregisterObject in interface Registrykey - the name or key of the object to remove from the registrymetadata - an implementation specific argument that can be passed into the methodRegistrationException - if there is a problem unregistering the object. Typically this will be because the object's
lifecycle threw an exceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.