org.directwebremoting.jaxer.impl
Class WideOpenCreatorManager

java.lang.Object
  extended by org.directwebremoting.impl.DefaultCreatorManager
      extended by org.directwebremoting.jaxer.impl.WideOpenCreatorManager
All Implemented Interfaces:
CreatorManager

public class WideOpenCreatorManager
extends DefaultCreatorManager

This is a modification of DefaultCreatorManager that attempts to do a second round of configuration to allow direct access to any classes in the system using a script name something like: creator/com/example/ClassName

WARNING: This class fundamentally breaks the DWR promise of "we won't touch any of your code without your express permission". You should only configure this class if you fully understand the implications of doing so.

This class was created to allow remoting between Jaxer and DWR for scripts marked runat="server". This should ensure that the exported classes are not available to the outside world.

Author:
Joe Walker [joe at getahead dot ltd dot uk]

Constructor Summary
WideOpenCreatorManager()
           
 
Method Summary
 Creator getCreator(java.lang.String scriptName, boolean includeHidden)
          Find an Creator by name
 
Methods inherited from class org.directwebremoting.impl.DefaultCreatorManager
addCreator, addCreator, addCreatorType, getCreatorNames, isDebug, isInitApplicationScopeCreatorsAtStartup, setCreators, setDebug, setInitApplicationScopeCreatorsAtStartup, setServletContext
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WideOpenCreatorManager

public WideOpenCreatorManager()
Method Detail

getCreator

public Creator getCreator(java.lang.String scriptName,
                          boolean includeHidden)
                   throws java.lang.SecurityException
Description copied from interface: CreatorManager
Find an Creator by name

Specified by:
getCreator in interface CreatorManager
Overrides:
getCreator in class DefaultCreatorManager
Parameters:
scriptName - The name of the creator to Javascript
includeHidden - Should we include hidden classes?
Returns:
The found Creator instance, or null if none was found.
Throws:
java.lang.SecurityException - If the Creator is not known

Copyright 2008