org.directwebremoting.create
Class NullCreator

java.lang.Object
  extended by org.directwebremoting.extend.AbstractCreator
      extended by org.directwebremoting.create.NullCreator
All Implemented Interfaces:
Creator

public class NullCreator
extends AbstractCreator
implements Creator

A creator that simply uses the default constructor each time it is called.

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

Field Summary
 
Fields inherited from interface org.directwebremoting.extend.Creator
APPLICATION, PAGE, REQUEST, SCRIPT, SESSION
 
Constructor Summary
NullCreator()
           
 
Method Summary
 java.lang.Object getInstance()
          Accessor for the/an instance of this Creator.
 java.lang.Class<?> getType()
          Accessor for the java.lang.Class that this Creator allows access to.
 void setClass(java.lang.String classname)
          What sort of class do we create?
 
Methods inherited from class org.directwebremoting.extend.AbstractCreator
getJavascript, getScope, isCacheable, isHidden, setCacheable, setHidden, setJavascript, setProperties, setScope, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.directwebremoting.extend.Creator
getJavascript, getScope, isCacheable, isHidden, setProperties
 

Constructor Detail

NullCreator

public NullCreator()
Method Detail

setClass

public void setClass(java.lang.String classname)
What sort of class do we create?

Parameters:
classname - The name of the class

getType

public java.lang.Class<?> getType()
Description copied from interface: Creator
Accessor for the java.lang.Class that this Creator allows access to.

Specified by:
getType in interface Creator
Returns:
The type of this allowed class

getInstance

public java.lang.Object getInstance()
                             throws java.lang.InstantiationException
Description copied from interface: Creator
Accessor for the/an instance of this Creator.

Specified by:
getInstance in interface Creator
Returns:
the instance to use
Throws:
java.lang.InstantiationException - If for some reason the object can not be created

Copyright 2008