|
||||||||||
| 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
public class DefaultContainer
DefaultContainer is like a mini-IoC container for DWR. At least it is an IoC container by interface (check: no params that have anything to do with DWR), but it is hard coded specifically for DWR. If we want to make more of it we can later, but this is certainly not going to become a full blown IoC container.
| Constructor Summary | |
|---|---|
DefaultContainer()
|
|
| Method Summary | |
|---|---|
void |
addParameter(java.lang.String askFor,
java.lang.Object valueParam)
Set the class that should be used to implement the given interface |
java.lang.Object |
getBean(java.lang.String id)
Get an instance of a bean of a given name (usually name=class name). |
java.util.Collection<java.lang.String> |
getBeanNames()
Get a list of all the available beans. |
java.lang.String |
getParameter(java.lang.String name)
Retrieve a previously set parameter |
void |
setupFinished()
Called to indicate that we finished adding parameters. |
| 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 |
| Constructor Detail |
|---|
public DefaultContainer()
| Method Detail |
|---|
public void addParameter(java.lang.String askFor,
java.lang.Object valueParam)
throws ContainerConfigurationException
askFor - The interface to implementvalueParam - The new implementation
ContainerConfigurationException - If the specified beans could not be usedpublic java.lang.String getParameter(java.lang.String name)
name - The parameter name to retrieve
public void setupFinished()
Servlet.init(javax.servlet.ServletConfig),
where all the setup is done, and where we depend on the undocumented
feature of all servlet containers that they complete the init process
of a Servlet before they begin servicing requests.
addParameter(String, Object)public java.lang.Object getBean(java.lang.String id)
Container
getBean in interface Containerid - 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 Container
|
Copyright ¬ 2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||