|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ltd.getahead.dwr.impl.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.Object askFor,
java.lang.Object value)
Set the class that should be used to implement the given interface |
void |
configurationFinished()
Called to indicate that we finished called setImplementation. |
java.lang.Object |
getBean(java.lang.String id)
Get an instance of a bean of a given type. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultContainer()
Method Detail |
public void addParameter(java.lang.Object askFor, java.lang.Object value) throws java.lang.InstantiationException, java.lang.IllegalAccessException
askFor
- The interface to implementvalue
- The new implementation
java.lang.IllegalAccessException
- If the specified beans could not be accessed
java.lang.InstantiationException
- If the specified beans could not be createdpublic void configurationFinished()
addParameter(Object, Object)
public java.lang.Object getBean(java.lang.String id)
Container
getBean
in interface Container
id
- The type to get an instance of
|
Copyright ? 2005 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |