|
||||||||||
| 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 |
contextDestroyed()
This should be called only by DwrListener. |
|
|
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)
Deprecated. |
|
|
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. |
|
void |
servletDestroyed()
Should be called only by DwrServlet
(or other servlet implementations). |
|
| 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 contextDestroyed()
DwrListener. It requests all
reverse ajax threads to stop.
GenericServlet.destroy() is called only when all
connections are closed. If a DwrListener is configured then we can close
down the connections in a timely way. All other tidy-up is done by
servletDestroyed() which will work even when a DwrListener has
not been configured.
servletDestroyed()void servletDestroyed()
DwrServlet
(or other servlet implementations). It requests all other threads to
stop, and any tidy-up that can be done after the context has been fully
destroyed.
contextDestroyed()
<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.IllegalAccessException@Deprecated void 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 | |||||||||