| org.directwebremoting.extend.CreatorManager
All known Subclasses: org.directwebremoting.impl.DefaultCreatorManager, org.directwebremoting.guice.InternalCreatorManager,
CreatorManager | public interface CreatorManager (Code) | | A class to manage the types of creators and the instantiated creators.
author: Joe Walker [joe at getahead dot ltd dot uk] |
addCreator | void addCreator(String scriptName, Creator creator) throws IllegalArgumentException(Code) | | Add a new creator.
TODO: If we refactor this, we should remove the scriptName parameter and
read the value from the creator
Parameters: scriptName - The name of the creator to Javascript Parameters: creator - The creator to add throws: IllegalArgumentException - If we have a duplicate name |
addCreatorType | void addCreatorType(String typeName, String className)(Code) | | In init mode, add a new type of creator
Parameters: typeName - The name of the new creator type Parameters: className - The class that we create |
getCreator | Creator getCreator(String scriptName) throws SecurityException(Code) | | Find an Creator by name
Parameters: scriptName - The name of the creator to Javascript The found Creator instance, or null if none was found. throws: SecurityException - If the Creator is not known |
getCreatorNames | Collection<String> getCreatorNames() throws SecurityException(Code) | | Get a list of the javascript names of the allowed creators.
This method could be seen as a security risk because it could allow an
attacker to find out extra information about your system so it is only
available if debug is turned on.
Loop over all the known allowed classes throws: SecurityException - If we are not in debug mode |
setCreators | void setCreators(Map<String, Creator> creators)(Code) | | Sets the creators for this creator manager.
Parameters: creators - the map of managed beans and their creator instances |
|
|