uk.ltd.getahead.dwr.create
Class AbstractCreator
java.lang.Object
uk.ltd.getahead.dwr.create.AbstractCreator
- All Implemented Interfaces:
- Creator
- Direct Known Subclasses:
- JsfCreator, NewCreator, NullCreator, PageFlowCreator, ScriptedCreator, SpringCreator, StrutsCreator
- public abstract class AbstractCreator
- extends java.lang.Object
- implements Creator
A simple implementation of the basic parts of Creator
- Author:
- Joe Walker [joe at getahead dot ltd dot uk]
Method Summary |
java.lang.String |
getJavascript()
|
java.lang.String |
getScope()
Each Creator creates objects with a given scope. |
void |
setJavascript(java.lang.String javascript)
|
void |
setProperties(java.util.Map params)
DefaultConfiguration is done via access to the DOM Element. |
void |
setScope(java.lang.String scope)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AbstractCreator
public AbstractCreator()
setProperties
public void setProperties(java.util.Map params)
throws java.lang.IllegalArgumentException
- Description copied from interface:
Creator
- DefaultConfiguration is done via access to the DOM Element.
This is not at all ideal, but it will do for the moment.
- Specified by:
setProperties
in interface Creator
- Parameters:
params
- The map of paramters to configure the creator
- Throws:
java.lang.IllegalArgumentException
- If the config data in the Element is invalid
getJavascript
public java.lang.String getJavascript()
- Returns:
- Returns the javascript name.
setJavascript
public void setJavascript(java.lang.String javascript)
- Parameters:
javascript
- The javascript name to set.
setScope
public void setScope(java.lang.String scope)
- Parameters:
scope
- Set the scope.
getScope
public java.lang.String getScope()
- Description copied from interface:
Creator
- Each Creator creates objects with a given scope.
- Specified by:
getScope
in interface Creator
- Returns:
- How long do we hold onto instances created by this Creator
toString
public java.lang.String toString()