|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Container
A very basic IoC container.
See ContainerUtil for information on how to setup a Container
| Method Summary | ||
|---|---|---|
void |
destroy()
Closes down all parts of DWR in a timely way, stops threads, and performs tidy-up. |
|
|
getBean(java.lang.Class<T> type)
Get the contained instance of a bean of a given type |
|
java.lang.Object |
getBean(java.lang.String id)
Get the contained instance of a bean/setting of a given name. |
|
java.util.Collection<java.lang.String> |
getBeanNames()
Get a list of all the available beans. |
|
void |
initializeBean(java.lang.Object object)
Sometimes we need to take a bean not created by the container, and inject it with the data that it would contain if it was created by the container. |
|
|
newInstance(java.lang.Class<T> type)
Sometimes we need to create a bean as a one-off object and have it injected with settings by the container. |
|
| Method Detail |
|---|
java.lang.Object getBean(java.lang.String id)
id - The type to get an instance of
<T> T getBean(java.lang.Class<T> type)
type - The type to get an instance of
java.util.Collection<java.lang.String> getBeanNames()
getBean(String). This method should only be used
for debugging purposes.
void destroy()
<T> T newInstance(java.lang.Class<T> type)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException
type - The type to get an instance of
java.lang.InstantiationException
java.lang.IllegalAccessExceptionvoid initializeBean(java.lang.Object object)
object - The object to inject.
|
Copyright ยจ 2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||