|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.directwebremoting.extend.Factory<T>
public class Factory<T>
Factory is not a user facing object, it is designed for system implementors. Factory objects are generally use as helper classes by Factory classes whose methods reflect the methods of Factory, but which are static and proxy the call to the contained Factory instance.
| Constructor Summary | |
|---|---|
Factory(java.lang.Class<? extends Builder<T>> created)
We need to know what type of builder to extract from the Container |
|
| Method Summary | ||
|---|---|---|
T |
attach(Container container)
Internal method to allow us to get the Builder from which we will get created objects. |
|
static
|
create(java.lang.Class<? extends Builder<T>> created)
Make it easy for Factories to create a Factory instance. |
|
T |
get()
Accessor for the current object managed by this factory instance. |
|
T |
get(ServerContext ctx)
Accessor for the current object in more complex setups. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Factory(java.lang.Class<? extends Builder<T>> created)
| Method Detail |
|---|
public static <T> Factory<T> create(java.lang.Class<? extends Builder<T>> created)
public T get()
public T get(ServerContext ctx)
get() method.
ctx - The servlet context to allow us to bootstrap
public T attach(Container container)
|
Copyright ยจ 2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||