BeanManagerpublic final class LifecycleManager extends BeanScheduler implements BeanManager
BeanManager that manages JSR250 beans and schedules lifecycle events.MODULE| Constructor | Description |
|---|---|
LifecycleManager() |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
activate(java.lang.Object bean) |
Customized activation of the given bean.
|
boolean |
manage(java.lang.Class<?> clazz) |
Decides whether instances of the given bean type should be reported to this manager.
|
boolean |
manage(java.lang.Object bean) |
Asks this manager to manage the given bean instance.
|
PropertyBinding |
manage(BeanProperty<?> property) |
Asks this manager to manage the given bean property.
|
boolean |
unmanage() |
Asks this manager to unmanage all the bean instances it knows about.
|
boolean |
unmanage(java.lang.Object bean) |
Asks this manager to unmanage the given bean instance.
|
detectCycle, schedulepublic boolean manage(java.lang.Class<?> clazz)
BeanManagermanage in interface BeanManagerclazz - The bean typetrue if instances of the bean should be reported; otherwise falsepublic PropertyBinding manage(BeanProperty<?> property)
BeanManagermanage in interface BeanManagerproperty - The bean propertynullpublic boolean manage(java.lang.Object bean)
BeanManagermanage in interface BeanManagerbean - The bean instancetrue if the bean instance was managed; otherwise falsepublic boolean unmanage(java.lang.Object bean)
BeanManagerunmanage in interface BeanManagerbean - The bean instancetrue if the bean instance was unmanaged; otherwise falsepublic boolean unmanage()
BeanManagerunmanage in interface BeanManagertrue if any bean instances were unmanaged; otherwise falseprotected void activate(java.lang.Object bean)
BeanScheduleractivate in class BeanSchedulerbean - The bean to activate