public final class

LifecycleManager

extends BeanScheduler
implements BeanManager
java.lang.Object
   ↳ org.eclipse.sisu.bean.BeanScheduler
     ↳ org.eclipse.sisu.bean.LifecycleManager

Class Overview

BeanManager that manages JSR250 beans and schedules lifecycle events.

Summary

[Expand]
Inherited Fields
From class org.eclipse.sisu.bean.BeanScheduler
Public Constructors
LifecycleManager()
Public Methods
boolean manage(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 manage(Class<?> clazz)
Decides whether instances of the given bean type should be reported to this manager.
boolean unmanage(Object bean)
Asks this manager to unmanage the given bean instance.
boolean unmanage()
Asks this manager to unmanage all the bean instances it knows about.
Protected Methods
void activate(Object bean)
Customized activation of the given bean.
[Expand]
Inherited Methods
From class org.eclipse.sisu.bean.BeanScheduler
From class java.lang.Object
From interface org.eclipse.sisu.bean.BeanManager

Public Constructors

public LifecycleManager ()

Public Methods

public boolean manage (Object bean)

Asks this manager to manage the given bean instance.

Parameters
bean The bean instance
Returns
  • true if the bean instance was managed; otherwise false

public 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

public boolean manage (Class<?> clazz)

Decides whether instances of the given bean type should be reported to this manager.

Parameters
clazz The bean type
Returns
  • true if instances of the bean should be reported; otherwise false

public boolean unmanage (Object bean)

Asks this manager to unmanage the given bean instance.

Parameters
bean The bean instance
Returns
  • true if the bean instance was unmanaged; otherwise false

public boolean unmanage ()

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

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

Protected Methods

protected void activate (Object bean)

Customized activation of the given bean.

Parameters
bean The bean to activate