public final class

PlexusLifecycleManager

extends Object
implements PlexusBeanManager
java.lang.Object
   ↳ org.sonatype.guice.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
boolean manage(Object bean)
Decides whether the given Plexus bean instance will be managed by this manager.
PropertyBinding manage(BeanProperty property)
boolean manage(Class<?> clazz)
Decides whether instances of the given Plexus bean type should be reported to this manager.
PlexusBeanManager manageChild()
synchronized boolean unmanage(Object bean)
Tells this manager to unmanage the given Plexus bean instance.
synchronized boolean unmanage()
Tells this manager to unmanage all the Plexus bean instances it knows about.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.sonatype.guice.plexus.binders.PlexusBeanManager

Public Constructors

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

Public Methods

public boolean manage (Object bean)

Decides whether the given Plexus bean instance will be managed by this manager.

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

public PropertyBinding manage (BeanProperty property)

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 synchronized boolean unmanage (Object bean)

Tells 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 synchronized boolean unmanage ()

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

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