|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.philemonworks.selfdiagnose.DiagnosticTask com.philemonworks.selfdiagnose.check.CheckClassLoadable
public class CheckClassLoadable
CheckClassLoadable is a DiagnosticTask that verifies that a given class is loadable. This task using the context class loader provided by the current thread. If that fails then it tries using the class loader of the task itself. If that fails too then the task reports the failure.
<checkclassloadable name="org.xml.sax.Attributes" />
Field Summary |
---|
Fields inherited from class com.philemonworks.selfdiagnose.DiagnosticTask |
---|
comment, PARAMETER_COMMENT, PARAMETER_REPORT, PARAMETER_VARIABLE, reportResults, requestor, variableName |
Constructor Summary | |
---|---|
CheckClassLoadable()
|
Method Summary | |
---|---|
String |
getClassName()
Name of the class to find. |
String |
getDescription()
Return the description of this task. |
void |
initializeFromAttributes(Attributes attributes)
This method is sent from the SelfDiagnoseHandler when a configuration is being processed. |
void |
run(ExecutionContext ctx,
DiagnosticTaskResult result)
Run the task. |
void |
setClassName(String string)
Name of the class to find |
void |
setUp(ExecutionContext ctx)
Override this method to verify that task parameters are initialized/set correctly. |
Methods inherited from class com.philemonworks.selfdiagnose.DiagnosticTask |
---|
createResult, getComment, getDefaultReportTemplate, getRequestor, getTaskName, getVariableName, hasComment, isReportResults, run, run, setComment, setReportResults, setRequestor, setVariableName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CheckClassLoadable()
Method Detail |
---|
public String getDescription()
getDescription
in class DiagnosticTask
public void initializeFromAttributes(Attributes attributes)
DiagnosticTask
initializeFromAttributes
in class DiagnosticTask
attributes
- org.xml.sax.Attributespublic void setUp(ExecutionContext ctx) throws DiagnoseException
DiagnosticTask
setUp
in class DiagnosticTask
ctx
- ExecutionContext
DiagnoseException
public void run(ExecutionContext ctx, DiagnosticTaskResult result) throws DiagnoseException
DiagnosticTask
run
in class DiagnosticTask
ctx
- ExecutionContextresult
- DiagnosticTaskResult
DiagnoseException
public String getClassName()
public void setClassName(String string)
string
- String
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |