public interface Container
Modifier and Type | Interface and Description |
---|---|
static interface |
Container.InheritedListener
Inherited Listener.
|
static interface |
Container.Listener
A listener for Container events.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addBean(Object o)
Add a bean.
|
void |
addEventListener(Container.Listener listener)
Add an event listener.
|
<T> T |
getBean(Class<T> clazz) |
Collection<Object> |
getBeans() |
<T> Collection<T> |
getBeans(Class<T> clazz) |
boolean |
removeBean(Object o)
Removes the given bean.
|
void |
removeEventListener(Container.Listener listener)
Remove an event listener.
|
boolean addBean(Object o)
Container.Listener
, then also do an implicit addEventListener(Listener)
.o
- the bean object to addCollection<Object> getBeans()
getBean(Class)
<T> Collection<T> getBeans(Class<T> clazz)
clazz
- the class of the beansgetBeans()
<T> T getBean(Class<T> clazz)
clazz
- the class of the beanboolean removeBean(Object o)
Container.Listener
, then also do an implicit removeEventListener(Listener)
.void addEventListener(Container.Listener listener)
listener
- addBean(Object)
void removeEventListener(Container.Listener listener)
listener
- removeBean(Object)
Copyright © 1995-2015 Webtide. All Rights Reserved.