public final class

PlexusLifecycleManager

extends Object
implements ProvisionListener PlexusBeanManager
java.lang.Object
   ↳ org.eclipse.sisu.plexus.lifecycles.PlexusLifecycleManager

Class Overview

PlexusBeanManager that manages Plexus components requiring lifecycle management.

Summary

Public Constructors
PlexusLifecycleManager(Provider<Context> plexusContextProvider, Provider<LoggerManager> plexusLoggerManagerProvider, Provider<?> slf4jLoggerFactoryProvider)
Public Methods
PropertyBinding manage(BeanProperty property)
boolean manage(Object bean)
Asks this manager to manage the given Plexus bean instance.
boolean manage(Class<?> clazz)
Decides whether instances of the given Plexus bean type should be reported to this manager.
PlexusBeanManager manageChild()
<T> void onProvision(ProvisionInvocation<T> pi)
boolean unmanage(Object bean)
Asks this manager to unmanage the given Plexus bean instance.
boolean unmanage()
Asks this manager to unmanage all the Plexus bean instances it knows about.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.inject.spi.ProvisionListener
From interface org.eclipse.sisu.plexus.binders.PlexusBeanManager

Public Constructors

public PlexusLifecycleManager (Provider<Context> plexusContextProvider, Provider<LoggerManager> plexusLoggerManagerProvider, Provider<?> slf4jLoggerFactoryProvider)

Public Methods

public PropertyBinding manage (BeanProperty property)

public boolean manage (Object bean)

Asks this manager to manage the given Plexus bean instance.

Parameters
bean The Plexus bean instance
Returns
  • true if the bean instance was managed; otherwise false

public boolean manage (Class<?> clazz)

Decides whether instances of the given Plexus bean type should be reported to this manager.

Parameters
clazz The Plexus bean type
Returns
  • true if instances of the bean should be reported; otherwise false

public PlexusBeanManager manageChild ()

public void onProvision (ProvisionInvocation<T> pi)

public boolean unmanage (Object bean)

Asks this manager to unmanage the given Plexus bean instance.

Parameters
bean The Plexus bean instance
Returns
  • true if the bean instance was unmanaged; otherwise false

public boolean unmanage ()

Asks this manager to unmanage all the Plexus bean instances it knows about.

Returns
  • true if any bean instances were unmanaged; otherwise false