org.apache.shale.clay.utils
Class JSFRuntimeTracker

java.lang.Object
  extended by org.apache.shale.clay.utils.JSFRuntimeTracker

public final class JSFRuntimeTracker
extends Object

This utility class is used to determine the JSF runtime that will take presidency.


Field Summary
static int MYFACES_1_1
          This enumeration indicates the MyFaces 1.1.x runtime is installed.
static int RI_1_1
          This enumeration indicates the JSF RI 1.1.x runtime is installed.
static int RI_1_2
          This enumeration indicates the JSF RI 1.2.x runtime is installed.
 
Method Summary
static int getJsfRuntime()
          This method will try to load some key classes in the various runtimes to determine the active runtime.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RI_1_1

public static final int RI_1_1

This enumeration indicates the JSF RI 1.1.x runtime is installed.

See Also:
Constant Field Values

MYFACES_1_1

public static final int MYFACES_1_1

This enumeration indicates the MyFaces 1.1.x runtime is installed.

See Also:
Constant Field Values

RI_1_2

public static final int RI_1_2

This enumeration indicates the JSF RI 1.2.x runtime is installed.

See Also:
Constant Field Values
Method Detail

getJsfRuntime

public static int getJsfRuntime()

This method will try to load some key classes in the various runtimes to determine the active runtime. The enumerations are as follows: RI_1_1, MYFACES_1_1, RI_1_2.

Returns:
an enumeration that indicates the active JSF runtime


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.