|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BeanFactory
Bean factory used to obtain objects in a transparent way.
| Method Summary | ||
|---|---|---|
|
find(java.lang.Class<T> aClass)
Finds a bean of the given class and which can be cast to the specified class. |
|
java.lang.Object |
find(java.lang.String aId)
Finds a bean based on id. |
|
|
find(java.lang.String aId,
java.lang.Class<T> aClass)
Finds a bean with the given id which can be cast to the specified class. |
|
| Method Detail |
|---|
java.lang.Object find(java.lang.String aId)
aId - Id of the bean.
BeanFactoryException - In case the object could not be found.<T> T find(java.lang.Class<T> aClass)
aClass - Class of the object to find.
BeanFactoryException - In case the object could not be found.
<T> T find(java.lang.String aId,
java.lang.Class<T> aClass)
T - Type of the object to get.aId - Id of the object to lookup.aClass - Class that the object must extends.
BeanFactoryException - In case the object could not be found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||