com.sun.faces.config
Class DigesterFactory

java.lang.Object
  extended by com.sun.faces.config.DigesterFactory

public class DigesterFactory
extends java.lang.Object

A simple factory to hide Digester configuration details.


Nested Class Summary
static interface DigesterFactory.VersionListener
          Implemented by a class that wants to be called as a particular configuration file is parsed.
 
Method Summary
 org.apache.commons.digester.Digester createDigester()
          Creates a new Digester instance configured for use with JSF.
static DigesterFactory.VersionListener getVersionListener()
           
static DigesterFactory newInstance()
          Returns a new DigesterFactory instance that will create a non-validating Digester instance.
static DigesterFactory newInstance(boolean isValidating)
          Creates a new DigesterFactory instance that will create a Digester instance where validation depends on the value of isValidating.
static DigesterFactory newInstance(boolean isValidating, DigesterFactory.VersionListener listener)
          Creates a new DigesterFactory instance that will create a Digester instance where validation depends on the value of isValidating.
static void releaseDigester(org.apache.commons.digester.Digester toRelease)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newInstance

public static DigesterFactory newInstance()

Returns a new DigesterFactory instance that will create a non-validating Digester instance.


newInstance

public static DigesterFactory newInstance(boolean isValidating)

Creates a new DigesterFactory instance that will create a Digester instance where validation depends on the value of isValidating.

Parameters:
isValidating - - true if the Digester instance that is ultimately returned should be configured (if possible) for document validation. If validation is not desired, pass false.
Returns:
a new DigesterFactory capable of creating Digesterinstances

newInstance

public static DigesterFactory newInstance(boolean isValidating,
                                          DigesterFactory.VersionListener listener)

Creates a new DigesterFactory instance that will create a Digester instance where validation depends on the value of isValidating.

Parameters:
isValidating - - true if the Digester instance that is ultimately returned should be configured (if possible) for document validation. If validation is not desired, pass false.
GrammarListener - a GrammarListener instance
Returns:
a new DigesterFactory capable of creating Digesterinstances

getVersionListener

public static DigesterFactory.VersionListener getVersionListener()

releaseDigester

public static void releaseDigester(org.apache.commons.digester.Digester toRelease)

createDigester

public org.apache.commons.digester.Digester createDigester()

Creates a new Digester instance configured for use with JSF.



Copyright ? 2002-2006 Sun Microsystems, Inc. All Rights Reserved.