Package org.eclipse.sisu.bean
Interface BeanManager
- All Known Implementing Classes:
LifecycleManager
public interface BeanManager
Service that manages the lifecycle of beans.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanDecides whether instances of the given bean type should be reported to this manager.booleanAsks this manager to manage the given bean instance.manage(BeanProperty<?> property) Asks this manager to manage the given bean property.booleanunmanage()Asks this manager to unmanage all the bean instances it knows about.booleanAsks this manager to unmanage the given bean instance.
-
Method Details
-
manage
Decides whether instances of the given bean type should be reported to this manager.- Parameters:
clazz- The bean type- Returns:
trueif instances of the bean should be reported; otherwisefalse
-
manage
Asks this manager to manage the given bean property.- Parameters:
property- The bean property- Returns:
- Non-null binding if the bean property was managed; otherwise
null
-
manage
Asks this manager to manage the given bean instance.- Parameters:
bean- The bean instance- Returns:
trueif the bean instance was managed; otherwisefalse
-
unmanage
Asks this manager to unmanage the given bean instance.- Parameters:
bean- The bean instance- Returns:
trueif the bean instance was unmanaged; otherwisefalse
-
unmanage
boolean unmanage()Asks this manager to unmanage all the bean instances it knows about.- Returns:
trueif any bean instances were unmanaged; otherwisefalse
-