|
||||||||||
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.CheckPropertyValuesAreJavaTypes
public class CheckPropertyValuesAreJavaTypes
CheckPropertyValuesAreJavaTypes is a DiagnosticTask that verifies that each Java type name is loadable. The pattern parameter is used to filter only those keys for which the value represent a Java type.
<checkpropertyvaluesarejavatypes name="some.properties" filter=".*[.]class" />
Field Summary |
---|
Fields inherited from class com.philemonworks.selfdiagnose.DiagnosticTask |
---|
comment, PARAMETER_COMMENT, PARAMETER_REPORT, PARAMETER_VARIABLE, reportResults, requestor, variableName |
Constructor Summary | |
---|---|
CheckPropertyValuesAreJavaTypes()
|
Method Summary | |
---|---|
DiagnosticTaskResult |
createResult()
This method is redefined such that the run method will get a composed result for its argument. |
String |
getDescription()
Return the description of this task. |
String |
getFilter()
Get the regular expression pattern. |
String |
getResourceName()
Get the name of the resource that contains the properties. |
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 |
setFilter(String string)
Set the regular expression pattern. |
void |
setResourceName(String string)
Set the name of the resource that contains the properties. |
void |
setUp(ExecutionContext ctx)
Override this method to verify that task parameters are initialized/set correctly. |
Methods inherited from class com.philemonworks.selfdiagnose.DiagnosticTask |
---|
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 CheckPropertyValuesAreJavaTypes()
Method Detail |
---|
public DiagnosticTaskResult createResult()
createResult
in class DiagnosticTask
public void initializeFromAttributes(Attributes attributes)
DiagnosticTask
initializeFromAttributes
in class DiagnosticTask
attributes
- org.xml.sax.Attributespublic String getDescription()
getDescription
in class DiagnosticTask
public 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 getFilter()
public String getResourceName()
public void setFilter(String string)
string
- public void setResourceName(String string)
string
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |