org.directwebremoting.beehive
Class PageFlowCreator

java.lang.Object
  extended by org.directwebremoting.extend.AbstractCreator
      extended by org.directwebremoting.beehive.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]

Field Summary
 
Fields inherited from interface org.directwebremoting.extend.Creator
APPLICATION, PAGE, REQUEST, SCRIPT, SESSION
 
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 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

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.
Method Detail

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)

Copyright 2008