public enum JsfVersion extends Enum<JsfVersion>
Modifier and Type | Method and Description |
---|---|
static JsfVersion |
getCurrent()
Detects current JSF API version in use in a context of current VM/classloader.
|
boolean |
isCompliantWith(JsfVersion version)
Checks whether this version of JSF is compliant with the provided version.
|
static JsfVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JsfVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JsfVersion JSF_2_0
public static final JsfVersion JSF_2_1
public static final JsfVersion JSF_2_2
public static JsfVersion[] values()
for (JsfVersion c : JsfVersion.values()) System.out.println(c);
public static JsfVersion valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static JsfVersion getCurrent()
for more details how it is detected.
public boolean isCompliantWith(JsfVersion version)
version
- a version to check compatibility of this version withCopyright © 2015 JBoss by Red Hat. All Rights Reserved.