org.directwebremoting.guice
Class InternalCreatorManager
java.lang.Object
org.directwebremoting.guice.InternalCreatorManager
- All Implemented Interfaces:
- org.directwebremoting.extend.CreatorManager
public class InternalCreatorManager
- extends java.lang.Object
- implements org.directwebremoting.extend.CreatorManager
Extends an existing creator manager with an injected list of creators
specified at Guice bind-time. Only to be used in conjection with DwrGuiceServlet.
- Author:
- Tim Peierls [tim at peierls dot net]
|
Constructor Summary |
InternalCreatorManager()
Retrieves an underlying creator manager from thread-local state
to which this class delegates CreatorManager calls. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InternalCreatorManager
public InternalCreatorManager()
- Retrieves an underlying creator manager from thread-local state
to which this class delegates
CreatorManager calls.
Adds any creators found from the Guice bindings.
setDebug
public void setDebug(boolean debug)
isDebug
public boolean isDebug()
- Specified by:
isDebug in interface org.directwebremoting.extend.CreatorManager
addCreatorType
public void addCreatorType(java.lang.String typeName,
java.lang.String className)
- Specified by:
addCreatorType in interface org.directwebremoting.extend.CreatorManager
addCreator
public void addCreator(java.lang.String scriptName,
java.lang.String typeName,
java.util.Map params)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.IllegalArgumentException
- Specified by:
addCreator in interface org.directwebremoting.extend.CreatorManager
- Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.IllegalArgumentException
addCreator
public void addCreator(java.lang.String scriptName,
org.directwebremoting.extend.Creator creator)
throws java.lang.IllegalArgumentException
- Specified by:
addCreator in interface org.directwebremoting.extend.CreatorManager
- Throws:
java.lang.IllegalArgumentException
getCreatorNames
public java.util.Collection getCreatorNames()
throws java.lang.SecurityException
- Specified by:
getCreatorNames in interface org.directwebremoting.extend.CreatorManager
- Throws:
java.lang.SecurityException
getCreator
public org.directwebremoting.extend.Creator getCreator(java.lang.String scriptName)
throws java.lang.SecurityException
- Specified by:
getCreator in interface org.directwebremoting.extend.CreatorManager
- Throws:
java.lang.SecurityException
setCreators
public void setCreators(java.util.Map creators)
- Specified by:
setCreators in interface org.directwebremoting.extend.CreatorManager
isInitApplicationScopeCreatorsAtStartup
public boolean isInitApplicationScopeCreatorsAtStartup()
setInitApplicationScopeCreatorsAtStartup
public void setInitApplicationScopeCreatorsAtStartup(boolean initApplicationScopeCreatorsAtStartup)
Copyright © 2007. All Rights Reserved.