uk.ltd.getahead.dwr.create
Class AbstractCreator

java.lang.Object
  extended byuk.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]

Field Summary
 
Fields inherited from interface uk.ltd.getahead.dwr.Creator
APPLICATION, PAGE, REQUEST, SESSION
 
Constructor Summary
AbstractCreator()
           
 
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
 
Methods inherited from interface uk.ltd.getahead.dwr.Creator
getInstance, getType
 

Constructor Detail

AbstractCreator

public AbstractCreator()
Method Detail

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()

Copyright ? 2005