org.directwebremoting.faces
Class AbstractJsfCreator

java.lang.Object
  extended by org.directwebremoting.extend.AbstractCreator
      extended by org.directwebremoting.faces.AbstractJsfCreator
All Implemented Interfaces:
Creator
Direct Known Subclasses:
Jsf2Creator, JsfCreator

public abstract class AbstractJsfCreator
extends AbstractCreator

This is a DWR creator implementation, to allow dwr beans to be allocated into JSF scopes and into jeffs3 specific scope (i.e. the flow scope)

Author:
Pierpaolo Follia, Joe Walker [joe at getahead dot ltd dot uk], Vinicius Melo [vdmelo at gmail dot com], David Marginian [david at butterdev dot com]

Field Summary
 
Fields inherited from interface org.directwebremoting.extend.Creator
APPLICATION, PAGE, REQUEST, SCRIPT, SESSION
 
Constructor Summary
AbstractJsfCreator()
           
 
Method Summary
abstract  java.lang.Object getInstance()
          Accessor for the/an instance of this Creator.
 java.lang.String getManagedBeanName()
           
 java.lang.Class<?> getType()
          Accessor for the java.lang.Class that this Creator allows access to.
static boolean isVBExpression(java.lang.String expression)
          Determine whether String is a value binding expression or not.
 void setClass(java.lang.String classname)
          What sort of class do we create?
 void setManagedBeanName(java.lang.String managedBeanName)
           
 
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
 

Constructor Detail

AbstractJsfCreator

public AbstractJsfCreator()
Method Detail

getType

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

Returns:
The type of this allowed class

getInstance

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

Returns:
the instance to use
Throws:
java.lang.InstantiationException - If for some reason the object can not be created

isVBExpression

public static boolean isVBExpression(java.lang.String expression)
Determine whether String is a value binding expression or not.

Parameters:
expression - The expression to test for value bindingness
Returns:
true if the expression contains a VB expression

getManagedBeanName

public java.lang.String getManagedBeanName()
Returns:
Returns the managedBeanName.

setManagedBeanName

public void setManagedBeanName(java.lang.String managedBeanName)
Parameters:
managedBeanName - The managedBeanName to set.

setClass

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

Parameters:
classname - The name of the class

Copyright ยจ 2008