uk.ltd.getahead.dwr.create
Class NewCreator
java.lang.Object
uk.ltd.getahead.dwr.create.AbstractCreator
uk.ltd.getahead.dwr.create.NewCreator
- All Implemented Interfaces:
- Creator
- public class NewCreator
- 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]
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NewCreator
public NewCreator()
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