org.sonatype.guice.plexus.binders
Interface PlexusBeanManager


public interface PlexusBeanManager

Service that manages the lifecycle of Plexus beans.


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.
 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.
 

Method Detail

manage

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

manage

PropertyBinding manage(BeanProperty<?> property)
Decides whether the given bean property will be managed by this manager.

Parameters:
property - The bean property
Returns:
Non-null binding if the bean property will be managed; otherwise null

manage

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

unmanage

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

unmanage

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


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