|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XspLibrary
Defines a Xsp library.
Implementations should inherit from
AbstractXspLibrary
and should not have any public or protected
methods, so that methods added to this interface do not break the
implementations. Any new methods will have a default implementation in
AbstractXspLibrary
.
Method Summary | |
---|---|
java.lang.String[] |
getDependencies()
null or the list of libraries that this one depends one. |
java.lang.String[] |
getFacesConfigFiles()
Return the list of faces config files contained in the library. |
java.lang.String |
getLibraryId()
Get the library id |
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. |
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. |
Method Detail |
---|
boolean isEnabled()
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.
true
by default, or false
if the
application is not valid in the current runtime environment.java.lang.String getLibraryId()
java.lang.String getPluginId()
boolean isGlobalScope()
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.java.lang.String[] getDependencies()
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.
java.lang.String[] getXspConfigFiles()
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).
java.lang.String[] getFacesConfigFiles()
java.lang.String getTagVersion()
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.
null
or a version String like "1.5.3"
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |