|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasig.portal.tools.checks.JaxpCheck
public class JaxpCheck
Checks that JAXP is present in the JVM. This allows us to give a useful error back to the deployer if we find JAXP missing. Instead of getting many class not found errors the deployer will see a message instructing how to fix the problem. JaxpCheck fulfills two purposes. First, it is an executable class which will make an educated guess at whether the JAXP jars are present (by checking for a particular class found only in the JAXP distribution) and if it guesses we're missing those jars will report this error to System.err and return a nonzero return code. A nonzero return value from a main method stop an Ant build when the class was run with stopOnFailure declared to true, as it is by default in our build.xml. Second, JaxpCheck implements the ICheck interface and so can be used via the CheckRunner API in this package. This allows us to run this check as part of the context initialization sanity checking. An instance of this check is configured in
Field Summary | |
---|---|
private static java.lang.String |
A_JAXP_CLASS
The name of a class found only in the JAXP distribution. |
private ICheck |
checkDelegate
ICheck implementation to which we delegate as the way we implement ICheck. |
Constructor Summary | |
---|---|
JaxpCheck()
|
Method Summary | |
---|---|
CheckResult |
doCheck()
Perform an arbitrary check. |
java.lang.String |
getDescription()
Get a description of what it is the check is intended to check. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String A_JAXP_CLASS
private ICheck checkDelegate
Constructor Detail |
---|
public JaxpCheck()
Method Detail |
---|
public static void main(java.lang.String[] args)
public CheckResult doCheck()
ICheck
doCheck
in interface ICheck
public java.lang.String getDescription()
ICheck
getDescription
in interface ICheck
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |