| Modifier and Type | Class and Description |
|---|---|
| public static interface | Container.InheritedListener
Inherited Listener. |
| public static interface | Container.Listener
A listener for Container events. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | |
| public static boolean | |
| public static boolean | Returns: true if the child was added as a bean, false if parent was not instance ofContainer or bean was already present.the parent container. parent, Object the child bean. child, boolean whether to managed the lifecycle of the bean. managed)A utility method to add a bean to a container. |
| public boolean | Returns: true if the listener was addedthe listener to add listener)Add an event listener. |
| public < the Bean type T> T | |
| public Collection | |
| public < the Bean type T> Collection | |
| public default < the Bean type T> Collection | Returns: a list of beans of the given class (or subclass), which may be cached/shared.the class of the beans clazz)
|
| public < the Bean type T> Collection | Returns: the list of beans of the given class from the entire Container hierarchy. The order is by depth first and then the order beans were added.the class of the beans clazz)
|
| public default List | Returns: An unmodifiable list of EventListener beansGet the beans added to the container that are EventListeners. |
| public boolean | |
| public void | |
| public boolean | |
| public static boolean | Returns: true if parent was an instance ofContainer and the bean was removed.the parent container. parent, Object the child bean. child)A utility method to remove a bean from a container. |
| public boolean | Returns: true if the listener was removedthe listener to remove listener)Remove an event listener. |
| public void | |
| public static void |
| addBean | back to summary |
|---|---|
| public boolean addBean(Object o) Add a bean. If the bean is-a
| |
| addBean | back to summary |
|---|---|
| public boolean addBean(Object o, boolean managed) Adds the given bean, explicitly managing it or not.
If the bean is-a
| |
| addBean | back to summary |
|---|---|
| public static boolean addBean(Object parent, Object child) A utility method to add a bean to a container. | |
| addBean | back to summary |
|---|---|
| public static boolean addBean(Object parent, Object child, boolean managed) A utility method to add a bean to a container. | |
| addEventListener | back to summary |
|---|---|
| public boolean addEventListener(EventListener listener) Add an event listener. EventListeners added by this method are also added as beans.
| |
| getBean | back to summary |
|---|---|
public <T> T getBean(Class<T> clazz)
| |
| getBeans | back to summary |
|---|---|
public Collection
| |
| getBeans | back to summary |
|---|---|
public <T> Collection
| |
| getCachedBeans | back to summary |
|---|---|
public default <T> Collection
| |
| getContainedBeans | back to summary |
|---|---|
public <T> Collection
| |
| getEventListeners | back to summary |
|---|---|
| public default List Get the beans added to the container that are EventListeners.
This is essentially equivalent to
| |
| isManaged | back to summary |
|---|---|
| public boolean isManaged(Object bean) Test if this container manages a bean
| |
| manage | back to summary |
|---|---|
| public void manage(Object bean) Manages a bean already contained by this aggregate, so that it is started/stopped/destroyed with this aggregate.
| |
| removeBean | back to summary |
|---|---|
| public boolean removeBean(Object o) Removes the given bean.
If the bean is-a
| |
| removeBean | back to summary |
|---|---|
| public static boolean removeBean(Object parent, Object child) A utility method to remove a bean from a container. | |
| removeEventListener | back to summary |
|---|---|
| public boolean removeEventListener(EventListener listener) Remove an event listener.
| |
| unmanage | back to summary |
|---|---|
| public void unmanage(Object bean) Unmanages a bean already contained by this aggregate, so that it is not started/stopped/destroyed with this aggregate.
| |
| unmanage | back to summary |
|---|---|
| public static void unmanage(Object parent, Object child) A utility method to unmanage a bean from a container. | |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void |
| beanAdded | back to summary |
|---|---|
| public void beanAdded(Container parent, Object child) | |
| beanRemoved | back to summary |
|---|---|
| public void beanRemoved(Container parent, Object child) | |