org.directwebremoting.guice
Class GuiceCreator
java.lang.Object
org.directwebremoting.create.AbstractCreator
org.directwebremoting.create.NewCreator
org.directwebremoting.guice.GuiceCreator
- All Implemented Interfaces:
- org.directwebremoting.extend.Creator
public class GuiceCreator
- extends org.directwebremoting.create.NewCreator
- implements org.directwebremoting.extend.Creator
A creator that uses Guice dependency injection to create remoted objects.
- Author:
- Tim Peierls [tim at peierls dot net]
| Fields inherited from interface org.directwebremoting.extend.Creator |
APPLICATION, PAGE, REQUEST, SCRIPT, SESSION |
|
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 |
checkScope, getJavascript, getScope, isCacheable, setCacheable, setJavascript, setProperties, setScope, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.directwebremoting.extend.Creator |
getJavascript, getScope, isCacheable, setProperties |
GuiceCreator
public GuiceCreator()
setClass
public void setClass(java.lang.String classname)
- Specified via
@RemoteProxy
or via a parameter in XML configuration.
- Overrides:
setClass in class org.directwebremoting.create.NewCreator
getType
public java.lang.Class getType()
- The class named through
setClass.
- Specified by:
getType in interface org.directwebremoting.extend.Creator- Overrides:
getType in class org.directwebremoting.create.NewCreator
getInstance
public java.lang.Object getInstance()
- Looks up an instance of this creator's type with an
Injector.
- Specified by:
getInstance in interface org.directwebremoting.extend.Creator- Overrides:
getInstance in class org.directwebremoting.create.NewCreator
Copyright © 2007. All Rights Reserved.