|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.directwebremoting.guice.InternalCreatorManager
public class InternalCreatorManager
Extends an existing creator manager with an injected list of creators
specified at Guice bind-time. Only to be used in conjection with DwrGuiceServlet.
| Constructor Summary | |
|---|---|
InternalCreatorManager()
Retrieves an underlying creator manager from thread-local state to which this class delegates CreatorManager calls. |
|
| Method Summary | |
|---|---|
void |
addCreator(java.lang.String scriptName,
Creator creator)
Add a new creator |
void |
addCreator(java.lang.String scriptName,
java.lang.String typeName,
java.util.Map params)
Add a new creator |
void |
addCreatorType(java.lang.String typeName,
java.lang.String className)
In init mode, add a new type of creator |
Creator |
getCreator(java.lang.String scriptName)
Find an Creator by name |
java.util.Collection |
getCreatorNames()
Get a list of the javascript names of the allowed creators. |
boolean |
isDebug()
Debug mode allows access to the list of creator names |
boolean |
isInitApplicationScopeCreatorsAtStartup()
|
void |
setCreators(java.util.Map creators)
Sets the creators for this creator manager. |
void |
setDebug(boolean debug)
|
void |
setInitApplicationScopeCreatorsAtStartup(boolean initApplicationScopeCreatorsAtStartup)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InternalCreatorManager()
CreatorManager calls.
Adds any creators found from the Guice bindings.
| Method Detail |
|---|
public void setDebug(boolean debug)
public boolean isDebug()
CreatorManager
isDebug in interface CreatorManagerCreatorManager.getCreatorNames()
public void addCreatorType(java.lang.String typeName,
java.lang.String className)
CreatorManager
addCreatorType in interface CreatorManagertypeName - The name of the new creator typeclassName - The class that we create
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
CreatorManager
addCreator in interface CreatorManagerscriptName - The name of the creator to JavascripttypeName - The class to use as a creatorparams - The extra parameters to allow the creator to configure itself
java.lang.InstantiationException - If reflection based creation fails
java.lang.IllegalAccessException - If reflection based creation fails
java.lang.IllegalArgumentException - If we have a duplicate name
public void addCreator(java.lang.String scriptName,
Creator creator)
throws java.lang.IllegalArgumentException
CreatorManager
addCreator in interface CreatorManagerscriptName - The name of the creator to Javascriptcreator - The creator to add
java.lang.IllegalArgumentException - If we have a duplicate name
public java.util.Collection getCreatorNames()
throws java.lang.SecurityException
CreatorManager
getCreatorNames in interface CreatorManagerjava.lang.SecurityException - If we are not in debug mode
public Creator getCreator(java.lang.String scriptName)
throws java.lang.SecurityException
CreatorManagerCreator by name
getCreator in interface CreatorManagerscriptName - The name of the creator to Javascript
java.lang.SecurityException - If the Creator is not knownpublic void setCreators(java.util.Map creators)
CreatorManager
setCreators in interface CreatorManagercreators - the map of managed beans and their creator instancespublic boolean isInitApplicationScopeCreatorsAtStartup()
public void setInitApplicationScopeCreatorsAtStartup(boolean initApplicationScopeCreatorsAtStartup)
|
Copyright ¬ 2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||