public interface

BeanManager

org.eclipse.sisu.bean.BeanManager
Known Indirect Subclasses

Class Overview

Service that manages the lifecycle of beans.

Summary

Public Methods
abstract boolean manage(Object bean)
Asks this manager to manage the given bean instance.
abstract PropertyBinding manage(BeanProperty<?> property)
Asks this manager to manage the given bean property.
abstract boolean manage(Class<?> clazz)
Decides whether instances of the given bean type should be reported to this manager.
abstract boolean unmanage(Object bean)
Asks this manager to unmanage the given bean instance.
abstract boolean unmanage()
Asks this manager to unmanage all the bean instances it knows about.

Public Methods

public abstract 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 abstract 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 abstract 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 abstract 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 abstract boolean unmanage ()

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

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