org.directwebremoting.jaxer.impl
Class WideOpenCreatorManager
java.lang.Object
org.directwebremoting.impl.DefaultCreatorManager
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]
|
Method Summary |
Creator |
getCreator(java.lang.String scriptName,
boolean includeHidden)
Find an Creator by name |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WideOpenCreatorManager
public WideOpenCreatorManager()
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 JavascriptincludeHidden - 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