Package org.eclipse.sisu.plexus
Class PlexusLifecycleManager
- java.lang.Object
-
- org.eclipse.sisu.bean.BeanScheduler
-
- org.eclipse.sisu.plexus.PlexusLifecycleManager
-
- All Implemented Interfaces:
com.google.inject.Module,BeanManager
public final class PlexusLifecycleManager extends BeanScheduler implements BeanManager, com.google.inject.Module
BeanManagerthat manages Plexus components requiring lifecycle management.
-
-
Field Summary
-
Fields inherited from class org.eclipse.sisu.bean.BeanScheduler
MODULE
-
-
Constructor Summary
Constructors Constructor Description PlexusLifecycleManager(javax.inject.Provider<Context> plexusContextProvider, javax.inject.Provider<LoggerManager> plexusLoggerManagerProvider, javax.inject.Provider<?> slf4jLoggerFactoryProvider, BeanManager delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidactivate(Object bean)Customized activation of the given bean.voidconfigure(com.google.inject.Binder binder)booleanmanage(Class<?> clazz)Decides whether instances of the given bean type should be reported to this manager.booleanmanage(Object bean)Asks this manager to manage the given bean instance.PropertyBindingmanage(BeanProperty property)Asks this manager to manage the given bean property.booleanunmanage()Asks this manager to unmanage all the bean instances it knows about.booleanunmanage(Object bean)Asks this manager to unmanage the given bean instance.-
Methods inherited from class org.eclipse.sisu.bean.BeanScheduler
detectCycle, schedule
-
-
-
-
Constructor Detail
-
PlexusLifecycleManager
public PlexusLifecycleManager(javax.inject.Provider<Context> plexusContextProvider, javax.inject.Provider<LoggerManager> plexusLoggerManagerProvider, javax.inject.Provider<?> slf4jLoggerFactoryProvider, BeanManager delegate)
-
-
Method Detail
-
configure
public void configure(com.google.inject.Binder binder)
- Specified by:
configurein interfacecom.google.inject.Module
-
manage
public boolean manage(Class<?> clazz)
Description copied from interface:BeanManagerDecides whether instances of the given bean type should be reported to this manager.- Specified by:
managein interfaceBeanManager- Parameters:
clazz- The bean type- Returns:
trueif instances of the bean should be reported; otherwisefalse
-
manage
public PropertyBinding manage(BeanProperty property)
Description copied from interface:BeanManagerAsks this manager to manage the given bean property.- Specified by:
managein interfaceBeanManager- Parameters:
property- The bean property- Returns:
- Non-null binding if the bean property was managed; otherwise
null
-
manage
public boolean manage(Object bean)
Description copied from interface:BeanManagerAsks this manager to manage the given bean instance.- Specified by:
managein interfaceBeanManager- Parameters:
bean- The bean instance- Returns:
trueif the bean instance was managed; otherwisefalse
-
unmanage
public boolean unmanage(Object bean)
Description copied from interface:BeanManagerAsks this manager to unmanage the given bean instance.- Specified by:
unmanagein interfaceBeanManager- Parameters:
bean- The bean instance- Returns:
trueif the bean instance was unmanaged; otherwisefalse
-
unmanage
public boolean unmanage()
Description copied from interface:BeanManagerAsks this manager to unmanage all the bean instances it knows about.- Specified by:
unmanagein interfaceBeanManager- Returns:
trueif any bean instances were unmanaged; otherwisefalse
-
activate
protected void activate(Object bean)
Description copied from class:BeanSchedulerCustomized activation of the given bean.- Specified by:
activatein classBeanScheduler- Parameters:
bean- The bean to activate
-
-