public class JSFVersionTracker
extends java.lang.Object
implements java.io.Serializable
Application Singleton that helps to track the version numbers of JSF artifacts defined in the application configuration resources (aka faces-config.xml files.
This class operates in two modes:
Startup time mode.
During startup time, this class is populated with version data for each of the artifacts specified in the application configuration resources. The version of the artifact is decided based on the version of the DTD or schema in which the artifact is declared. PENDING(edburns): Note that when we start allowing things to be declared via annotations, versioning will be a problem. I've filed JSF-API-149 on this.
During startup time, this classes is accessed via a
ThreadLocal
variable exposed via the #getCurrentInstance
method.
Run time mode
During runtime, this class is consulted to determine the version data
of a JSF artifact. The reference for this class is stored on the ApplicationAssociate
.
Modifier and Type | Class and Description |
---|---|
static class |
JSFVersionTracker.Version |
Constructor and Description |
---|
JSFVersionTracker() |
Modifier and Type | Method and Description |
---|---|
JSFVersionTracker.Version |
getCurrentVersion() |
JSFVersionTracker.Version |
getVersionForTrackedClassName(java.lang.String fqcn) |
public JSFVersionTracker.Version getVersionForTrackedClassName(java.lang.String fqcn)
public JSFVersionTracker.Version getCurrentVersion()
Copyright ? 2002-2006 Sun Microsystems, Inc. All Rights Reserved.