public final class PlexusLifecycleManager extends BeanScheduler implements BeanManager, com.google.inject.Module
BeanManager that manages Plexus components requiring lifecycle management.MODULE| Constructor and Description |
|---|
PlexusLifecycleManager(javax.inject.Provider<Context> plexusContextProvider,
javax.inject.Provider<LoggerManager> plexusLoggerManagerProvider,
javax.inject.Provider<?> slf4jLoggerFactoryProvider,
BeanManager delegate) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(Object bean)
Customized activation of the given bean.
|
void |
configure(com.google.inject.Binder binder) |
PropertyBinding |
manage(BeanProperty property)
Asks this manager to manage the given bean property.
|
boolean |
manage(Class<?> clazz)
Decides whether instances of the given bean type should be reported to this manager.
|
boolean |
manage(Object bean)
Asks this manager to manage the given bean instance.
|
boolean |
unmanage()
Asks this manager to unmanage all the bean instances it knows about.
|
boolean |
unmanage(Object bean)
Asks this manager to unmanage the given bean instance.
|
schedulepublic PlexusLifecycleManager(javax.inject.Provider<Context> plexusContextProvider, javax.inject.Provider<LoggerManager> plexusLoggerManagerProvider, javax.inject.Provider<?> slf4jLoggerFactoryProvider, BeanManager delegate)
public void configure(com.google.inject.Binder binder)
configure in interface com.google.inject.Modulepublic boolean manage(Class<?> clazz)
BeanManagermanage in interface BeanManagerclazz - The bean typetrue if instances of the bean should be reported; otherwise falsepublic PropertyBinding manage(BeanProperty property)
BeanManagermanage in interface BeanManagerproperty - The bean propertynullpublic boolean manage(Object bean)
BeanManagermanage in interface BeanManagerbean - The bean instancetrue if the bean instance was managed; otherwise falsepublic boolean unmanage(Object bean)
BeanManagerunmanage in interface BeanManagerbean - The bean instancetrue if the bean instance was unmanaged; otherwise falsepublic boolean unmanage()
BeanManagerunmanage in interface BeanManagertrue if any bean instances were unmanaged; otherwise falseprotected void activate(Object bean)
BeanScheduleractivate in class BeanSchedulerbean - The bean to activateCopyright © 2016. All Rights Reserved.