| org.directwebremoting.extend.Creator
All known Subclasses: org.directwebremoting.guice.InternalCreator, org.directwebremoting.faces.JsfCreator, org.directwebremoting.create.SingletonCreator, org.directwebremoting.create.NewCreator, org.directwebremoting.create.NullCreator, org.directwebremoting.create.AbstractCreator, org.directwebremoting.create.ScriptedCreator, org.directwebremoting.struts.StrutsCreator, org.directwebremoting.create.Ejb3Creator, org.directwebremoting.spring.SpringCreator, org.directwebremoting.beehive.PageFlowCreator, org.directwebremoting.guice.GuiceCreator,
Creator | public interface Creator (Code) | | A base class for all AllowedClasses
author: Joe Walker [joe at getahead dot ltd dot uk] |
Field Summary | |
final static String | APPLICATION Application scope: named reference remains available in the
ServletContext until it is reclaimed. | final static String | PAGE Page scope: (this is the default) the named reference remains available
in this PageContext until the return from the current Servlet.service()
invocation. | final static String | REQUEST Request scope: the named reference remains available from the
ServletRequest associated with the Servlet until the current request is
completed. | final static String | SCRIPT Script scope (tied to a id recorded in Javascript): the named reference
remains available while the script variable remains stored in the
browser. | final static String | SESSION Session scope (only valid if this page participates in a session): the
named reference remains available from the HttpSession (if any)
associated with the Servlet until the HttpSession is invalidated. |
APPLICATION | final static String APPLICATION(Code) | | Application scope: named reference remains available in the
ServletContext until it is reclaimed.
|
PAGE | final static String PAGE(Code) | | Page scope: (this is the default) the named reference remains available
in this PageContext until the return from the current Servlet.service()
invocation.
|
REQUEST | final static String REQUEST(Code) | | Request scope: the named reference remains available from the
ServletRequest associated with the Servlet until the current request is
completed. This scope type is almost identical to
Creator.PAGE scope
and it is recommended to use
Creator.PAGE scope in place of this scope.
Use of
may be deprecated in the future.
|
SCRIPT | final static String SCRIPT(Code) | | Script scope (tied to a id recorded in Javascript): the named reference
remains available while the script variable remains stored in the
browser.
|
SESSION | final static String SESSION(Code) | | Session scope (only valid if this page participates in a session): the
named reference remains available from the HttpSession (if any)
associated with the Servlet until the HttpSession is invalidated.
|
getJavascript | String getJavascript()(Code) | | How is this creator referred to in Javascript land?
A Javascript identifier |
getScope | String getScope()(Code) | | Each Creator creates objects with a given scope.
How long do we hold onto instances created by this Creator |
getType | Class> getType()(Code) | | Accessor for the java.lang.Class that this Creator
allows access to.
The type of this allowed class |
isCacheable | boolean isCacheable()(Code) | | Is the class behind the Creator likely to change over time?
TODO: We should probably remove this. I suspect that the reason we added
this was to handle ScriptCreator's ability to change things half way
through, and it feels dangerous given the number of caches around the
place.
Returns the reloadable variable |
setProperties | void setProperties(Map<String, String> params) throws IllegalArgumentException(Code) | | DefaultConfiguration is done via access to the DOM Element.
This is not at all ideal, but it will do for the moment.
Parameters: params - The map of parameters to configure the creator throws: IllegalArgumentException - If the config data in the Element is invalid |
|
|