uk.ltd.getahead.dwr.create
Class PageFlowCreator
java.lang.Object
uk.ltd.getahead.dwr.create.AbstractCreator
uk.ltd.getahead.dwr.create.PageFlowCreator
- All Implemented Interfaces:
- Creator
- public class PageFlowCreator
- extends AbstractCreator
- implements Creator
Page Flow Creator
The name Creator is a little misleading in that implies that a PageFlow is
being created. This class merely returns the current PageFlowController from
the Request
- Author:
- Kevin Conaway, Joe Walker [joe at getahead dot ltd dot uk]
Constructor Summary |
PageFlowCreator()
Test to see what implementations of PageFlow are available. |
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 |
setForceWebLogic(boolean forceWebLogic)
What do we do if both Weblogic and Beehive are available. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PageFlowCreator
public PageFlowCreator()
throws java.lang.ClassNotFoundException
- Test to see what implementations of PageFlow are available.
- Throws:
java.lang.ClassNotFoundException
- If neither Beehive or Weblogic are around.
setForceWebLogic
public void setForceWebLogic(boolean forceWebLogic)
- What do we do if both Weblogic and Beehive are available.
The default is to use Beehive, but this allows us to alter that.
- Parameters:
forceWebLogic
- Do we use Weblogic if both are available.
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
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 PageFlowController that we are using (Beehive/Weblogic)