|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.directwebremoting.impl.AbstractContainer
org.directwebremoting.impl.DefaultContainer
org.directwebremoting.spring.SpringContainer
public class SpringContainer
A Container implementation that looks up all beans from the
configuration specified in a Spring context.
It loads the configuration from a Spring web application context.
| Constructor Summary | |
|---|---|
SpringContainer()
|
|
| Method Summary | |
|---|---|
void |
addParameter(java.lang.String askFor,
java.lang.Object valueParam)
Add a parameter to the container as a possibility for injection |
void |
contextDestroyed()
This should be called only by DwrListener. |
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 |
servletDestroyed()
Should be called only by DwrServlet
(or other servlet implementations). |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
|
| Methods inherited from class org.directwebremoting.impl.DefaultContainer |
|---|
addBean, addImplementation, addImplementationOption, contextDestroyed, getParameter, initializeBean, newInstance, servletDestroyed, setupFinished |
| Methods inherited from class org.directwebremoting.impl.AbstractContainer |
|---|
getBean |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.directwebremoting.Container |
|---|
getBean, initializeBean, newInstance |
| Constructor Detail |
|---|
public SpringContainer()
| Method Detail |
|---|
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansException
public void addParameter(java.lang.String askFor,
java.lang.Object valueParam)
throws ContainerConfigurationException
DefaultContainer
addParameter in class DefaultContaineraskFor - The key that will be looked upvalueParam - The value to be returned from the key lookup
ContainerConfigurationException - If the specified beans could not be usedpublic java.lang.Object getBean(java.lang.String id)
Container
getBean in interface ContainergetBean in class DefaultContainerid - The type to get an instance of
public java.util.Collection<java.lang.String> getBeanNames()
ContainerContainer.getBean(String). This method should only be used
for debugging purposes.
getBeanNames in interface ContainergetBeanNames in class DefaultContainerpublic void contextDestroyed()
ContainerDwrListener. 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
Container.servletDestroyed() which will work even when a DwrListener has
not been configured.
contextDestroyed in interface ContainercontextDestroyed in interface UninitializingBeancontextDestroyed in class DefaultContainerContainer.servletDestroyed()public void servletDestroyed()
ContainerDwrServlet
(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.
servletDestroyed in interface ContainerservletDestroyed in interface UninitializingBeanservletDestroyed in class DefaultContainerContainer.contextDestroyed()
|
Copyright ยจ 2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||