Package org.eclipse.sisu.bean
Interface BeanManager
-
- All Known Implementing Classes:
LifecycleManager
public interface BeanManagerService that manages the lifecycle of beans.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanmanage(Class<?> clazz)Decides whether instances of the given bean type should be reported to this manager.booleanmanage(Object bean)Asks this manager to manage the given bean instance.PropertyBindingmanage(BeanProperty<?> property)Asks this manager to manage the given bean property.booleanunmanage()Asks this manager to unmanage all the bean instances it knows about.booleanunmanage(Object bean)Asks this manager to unmanage the given bean instance.
-
-
-
Method Detail
-
manage
boolean manage(Class<?> clazz)
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
PropertyBinding manage(BeanProperty<?> property)
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
boolean manage(Object bean)
Asks this manager to manage the given bean instance.- Parameters:
bean- The bean instance- Returns:
trueif the bean instance was managed; otherwisefalse
-
unmanage
boolean unmanage(Object bean)
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
-
-