|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.directwebremoting.create.AbstractCreator
org.directwebremoting.create.NewCreator
org.directwebremoting.guice.GuiceCreator
public class GuiceCreator
A creator that uses Guice dependency injection to create remoted objects.
Field Summary |
---|
Fields inherited from interface org.directwebremoting.extend.Creator |
---|
APPLICATION, PAGE, REQUEST, SCRIPT, SESSION |
Constructor Summary | |
---|---|
GuiceCreator()
|
Method Summary | |
---|---|
java.lang.Object |
getInstance()
Looks up an instance of this creator's type with an Injector . |
java.lang.Class |
getType()
The class named through setClass . |
void |
setClass(java.lang.String classname)
Specified via @RemoteProxy
or via a parameter in XML configuration. |
Methods inherited from class org.directwebremoting.create.NewCreator |
---|
getClassName, setClassName |
Methods inherited from class org.directwebremoting.create.AbstractCreator |
---|
getJavascript, getScope, isCacheable, setCacheable, setJavascript, setProperties, setScope, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.directwebremoting.extend.Creator |
---|
getJavascript, getScope, isCacheable, setProperties |
Constructor Detail |
---|
public GuiceCreator()
Method Detail |
---|
public void setClass(java.lang.String classname)
@RemoteProxy
or via a parameter in XML configuration.
setClass
in class NewCreator
classname
- The name of the classpublic java.lang.Class getType()
setClass
.
getType
in interface Creator
getType
in class NewCreator
public java.lang.Object getInstance()
Injector
.
getInstance
in interface Creator
getInstance
in class NewCreator
|
Copyright ? 2005 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |