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.
author: Joe Walker [joe at getahead dot ltd dot uk]
public void addImplementation(Class<T> base, Class<? extends T> implementation)(Code)
Set the class that should be used to implement the given interface
Parameters: base - The interface to implement Parameters: implementation - The new implementation throws: ContainerConfigurationException - If the specified beans could not be used
Add a parameter to the container as a possibility for injection
Parameters: askFor - The key that will be looked up Parameters: valueParam - The value to be returned from the key lookup throws: ContainerConfigurationException - If the specified beans could not be used
Called to indicate that we finished adding parameters.
The thread safety of a large part of DWR depends on this function only
being called from
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.
See Also:DefaultContainer.addParameter(StringObject)
Methods inherited from org.directwebremoting.impl.AbstractContainer