org.codehaus.plexus
Class PlexusLifecycleManager

java.lang.Object
  extended by org.codehaus.plexus.PlexusLifecycleManager
All Implemented Interfaces:
PlexusBeanManager

public final class PlexusLifecycleManager
extends Object
implements PlexusBeanManager

PlexusBeanManager that manages Plexus components requiring lifecycle management.


Constructor Summary
PlexusLifecycleManager(javax.inject.Provider<Context> plexusContextProvider, javax.inject.Provider<LoggerManager> plexusLoggerManagerProvider, javax.inject.Provider<?> slf4jLoggerFactoryProvider)
           
 
Method Summary
 PropertyBinding manage(BeanProperty property)
          Decides whether the given bean property will be managed by this manager.
 boolean manage(Class<?> clazz)
          Decides whether instances of the given Plexus bean type should be reported to this manager.
 boolean manage(Object bean)
          Decides whether the given Plexus bean instance will be managed by this manager.
 PlexusBeanManager manageChild()
           
 boolean unmanage()
          Tells this manager to unmanage all the Plexus bean instances it knows about.
 boolean unmanage(Object bean)
          Tells this manager to unmanage the given Plexus bean instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlexusLifecycleManager

public PlexusLifecycleManager(javax.inject.Provider<Context> plexusContextProvider,
                              javax.inject.Provider<LoggerManager> plexusLoggerManagerProvider,
                              javax.inject.Provider<?> slf4jLoggerFactoryProvider)
Method Detail

manage

public boolean manage(Class<?> clazz)
Description copied from interface: PlexusBeanManager
Decides whether instances of the given Plexus bean type should be reported to this manager.

Specified by:
manage in interface PlexusBeanManager
Parameters:
clazz - The Plexus bean type
Returns:
true if instances of the bean should be reported; otherwise false

manage

public PropertyBinding manage(BeanProperty property)
Description copied from interface: PlexusBeanManager
Decides whether the given bean property will be managed by this manager.

Specified by:
manage in interface PlexusBeanManager
Parameters:
property - The bean property
Returns:
Non-null binding if the bean property will be managed; otherwise null

manage

public boolean manage(Object bean)
Description copied from interface: PlexusBeanManager
Decides whether the given Plexus bean instance will be managed by this manager.

Specified by:
manage in interface PlexusBeanManager
Parameters:
bean - The Plexus bean instance
Returns:
true if the bean instance will be managed; otherwise false

unmanage

public boolean unmanage(Object bean)
Description copied from interface: PlexusBeanManager
Tells this manager to unmanage the given Plexus bean instance.

Specified by:
unmanage in interface PlexusBeanManager
Parameters:
bean - The Plexus bean instance
Returns:
true if the bean instance was unmanaged; otherwise false

unmanage

public boolean unmanage()
Description copied from interface: PlexusBeanManager
Tells this manager to unmanage all the Plexus bean instances it knows about.

Specified by:
unmanage in interface PlexusBeanManager
Returns:
true if any bean instances were unmanaged; otherwise false

manageChild

public PlexusBeanManager manageChild()


Copyright © 2010-2012 Sonatype, Inc.. All Rights Reserved.