|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.xsp.library.AbstractXspLibrary
public abstract class AbstractXspLibrary
Abstract XSP library.
XspLibrary
Constructor Summary | |
---|---|
AbstractXspLibrary()
|
Method Summary | |
---|---|
int |
getBaseXspLibraryVersion()
Indicates the version of the XspLibrary API that this instance was designed to use. |
java.lang.String[] |
getDependencies()
null or the list of libraries that this one depends one. |
java.lang.String |
getDojoVersionRequired()
Indicates this XspLibrary requires the given Dojo Toolkit core version, and will not run with an earlier Dojo version. |
java.lang.String[] |
getFacesConfigFiles()
Return the list of faces config files contained in the library. |
java.lang.String |
getPluginId()
Get the plug-in id. |
java.lang.String |
getTagVersion()
Usually like the library plugin version, except without the datestamp at the end. |
java.lang.String[] |
getXspConfigFiles()
Return the list of Xsp config files contained in the library. |
java.lang.Boolean |
isCompareTagVersionQualifier()
Indicates that comparisons of the XspLibrary.getTagVersion()
and the XPage's library tag maximum since version should
compare using the text qualifier part of the version in the comparison. |
boolean |
isEnabled()
Return true if the library is valid for the duration of this
JVM. |
boolean |
isGlobalScope()
Check if this library should be globally available to all applications at runtime. |
boolean |
isTagVersionUseMicroUnderscore()
Indicates that, where possible, server error messages that print out the XspLibrary.getTagVersion() value, or the
maximum library tag since version of the XPage,
will display "8.5.32002.qualifier" as "8.5.3_2002.qualifier",
by inserting an underscore after the before the 2nd digit of the micro number. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.xsp.library.XspLibrary |
---|
getLibraryId |
Constructor Detail |
---|
public AbstractXspLibrary()
Method Detail |
---|
public boolean isGlobalScope()
XspLibrary
isGlobalScope
in interface XspLibrary
false
by default, or true if this library should be
available on the classpath of every application on the server,
and should contribute it's faces-config.xml files to every
application.public java.lang.String[] getDependencies()
XspLibrary
null
or the list of libraries that this one depends one.
This is used to compute the load order of the libraries. Circular
dependency loops will lead to problems.
getDependencies
in interface XspLibrary
public java.lang.String[] getXspConfigFiles()
XspLibrary
Extension
".xsp-config", but it is not
necessary. These files are only loaded in Designer, and used to verify
that the tags in the XPages source are valid, and to generate a compiled
version of the XPage (using each tag's corresponding Java class).
getXspConfigFiles
in interface XspLibrary
public java.lang.String[] getFacesConfigFiles()
XspLibrary
getFacesConfigFiles
in interface XspLibrary
public boolean isEnabled()
XspLibrary
true
if the library is valid for the duration of this
JVM. This implementation should not depend on the current request, but
may check server-wide configuration options or for the existence of
classes it depends on. If returning false, the implementation should log
the reason why it is not enabled, so that admins can understand the
problem when applications that depend on this library cannot resolve it.
isEnabled
in interface XspLibrary
true
by default, or false
if the
application is not valid in the current runtime environment.public java.lang.String getPluginId()
XspLibrary
getPluginId
in interface XspLibrary
public java.lang.String getTagVersion()
XspLibrary
XspLibrary.getTagVersion()
does not return version 2 or later, then it is
assumed that the initial version of the library is installed, and the
XPage will fail with an error message explaining that version 2 of the
library is needed.
getTagVersion
in interface XspLibrary
null
or a version String like "1.5.3"public java.lang.String getDojoVersionRequired()
XspLibrary
null
indicates that the
application doesn't depend on any particular dojo version. The minimum
version on a server will be Dojo 1.4.1, the version on the Domino8.5.2
environment which is required for running an XPages library like this
one. When an application depends on a library using a later version than
the server default, that later Dojo version will be used when running the
library. If an application depends on multiple libraries, the highest
library required version will be used. This Dojo version constraint will
only be checked on 8.5.3 or later servers (in 8.5.2 the method is not
called). If this library cannot run on an 8.5.2 server, then either the
plugin dependencies should depend on 8.5.2 versions of the XPages
runtime, or the XspLibrary.isEnabled()
method should return false
when it detects the 8.5.2 environment. This method was added to the
interface in 8.5.3.
getDojoVersionRequired
in interface XspLibrary
null
or a Dojo version String like "1.4.1"public java.lang.Boolean isCompareTagVersionQualifier()
XspLibrary
XspLibrary.getTagVersion()
and the XPage's library tag maximum since version should
compare using the text qualifier part of the version in the comparison.
The qualifier will not be parsed as a number - a string comparison will be used.
Prior to the 9.0.0 release, in a version like "major.minor.micro.qualifier",
only the "major.minor.micro" parts of the version will be used in the version
comparison. This is useful in situations where the library releases are
more frequent than the increments of the micron version.
This feature will not work in 8.5.2 and 8.5.3 environments.
This defaults to null, in which case the behavior will
depend on the result of XspLibrary.getBaseXspLibraryVersion()
.
Override this to return Boolean.TRUE
when the qualifier should be used.
isCompareTagVersionQualifier
in interface XspLibrary
public int getBaseXspLibraryVersion()
XspLibrary
XspLibrary.isCompareTagVersionQualifier()
. When that method returns null
and this version is 3 or greater, then the behavior will be the same as
Boolean.TRUE
, else for 2 or earlier, the behavior will be the
same as Boolean.FALSE
.
0 - unknown base version.
1 - as released in Notes/Domino 8.5.2
2 - extra method XspLibrary.getDojoVersionRequired()
(added in 8.5.3)
3 - extra methods XspLibrary.isCompareTagVersionQualifier()
,
XspLibrary.getBaseXspLibraryVersion()
,
XspLibrary.isTagVersionUseMicroUnderscore()
(added in 9.0.0).
This method was added to the interface in 9.0.0. It defaults to 0.
getBaseXspLibraryVersion
in interface XspLibrary
public boolean isTagVersionUseMicroUnderscore()
XspLibrary
XspLibrary.getTagVersion()
value, or the
maximum library tag since version of the XPage,
will display "8.5.32002.qualifier" as "8.5.3_2002.qualifier",
by inserting an underscore after the before the 2nd digit of the micro number.
That may be useful in situations where the library must run in a pre-9.0.0
environment, so XspLibrary.isCompareTagVersionQualifier()
will not be honored,
and the library releases are more frequent
than the increments of the first digit of the micro version.
This method was added to the interface in 9.0.0. It defaults to null (false).
isTagVersionUseMicroUnderscore
in interface XspLibrary
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |