@Deprecated public class GuiceRegistry extends AbstractRegistry
Module objects. The lifecycle of objects will be
managed by Mule since Guice does not provide lifecycle support.
To create modules extend the AbstractMuleGuiceModule since it provides hooks and helpers for
working with Mule configuration. Any modules independent of Mule can just extend the Guice AbstractModule
as normal.
Mule will discover modules on the classpath, if you need to configure a module before passing it to the Guice injector you
need to implement a GuiceModuleFactory for your module.AbstractMuleGuiceModule,
GuiceModuleFactorylifecycleManager, logger, muleContextPHASE_NAMEPHASE_NAME| Constructor and Description |
|---|
GuiceRegistry(MuleContext muleContext)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doDispose()
Deprecated.
|
protected void |
doInitialise()
Deprecated.
|
boolean |
isReadOnly()
Deprecated.
|
boolean |
isRemote()
Deprecated.
|
<T> Map<String,T> |
lookupByType(Class<T> type)
Deprecated.
|
<T> Collection<T> |
lookupLocalObjects(Class<T> type)
Deprecated.
|
<T> T |
lookupObject(Class<T> type)
Deprecated.
|
<T> T |
lookupObject(String key)
Deprecated.
|
<T> Collection<T> |
lookupObjects(Class<T> type)
Deprecated.
|
void |
registerObject(String key,
Object value)
Deprecated.
|
void |
registerObject(String key,
Object value,
Object metadata)
Deprecated.
|
void |
registerObjects(Map objects)
Deprecated.
|
void |
unregisterObject(String key)
Deprecated.
|
void |
unregisterObject(String key,
Object metadata)
Deprecated.
|
createLifecycleManager, dispose, fireLifecycle, get, getLifecycleManager, getRegistryId, initialise, lookupObjectsForLifecyclepublic GuiceRegistry(MuleContext muleContext)
protected void doInitialise()
throws InitialisationException
doInitialise in class AbstractRegistryInitialisationExceptionprotected void doDispose()
doDispose in class AbstractRegistrypublic <T> T lookupObject(String key)
public <T> T lookupObject(Class<T> type) throws RegistrationException
lookupObject in interface RegistrylookupObject in class AbstractRegistryRegistrationExceptionpublic <T> Collection<T> lookupObjects(Class<T> type)
public <T> Collection<T> lookupLocalObjects(Class<T> type)
public void registerObject(String key, Object value) throws RegistrationException
RegistrationExceptionpublic void registerObject(String key, Object value, Object metadata) throws RegistrationException
RegistrationExceptionpublic void registerObjects(Map objects) throws RegistrationException
RegistrationExceptionpublic void unregisterObject(String key) throws RegistrationException
RegistrationExceptionpublic void unregisterObject(String key, Object metadata) throws RegistrationException
RegistrationExceptionpublic boolean isReadOnly()
public boolean isRemote()
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.