| |
|
| java.lang.Object org.jasig.portal.tools.checks.ClassPresenceCheck
ClassPresenceCheck | public class ClassPresenceCheck implements ICheck(Code) | | Checks that a class named as a constructor argument is present.
version: $Revision: 35837 $ $Date: 2005-05-20 12:01:34 -0700 (Fri, 20 May 2005) $ since: uPortal 2.5 |
Field Summary | |
final protected Log | log |
Constructor Summary | |
public | ClassPresenceCheck(String targetClass) Each instance of ClassPresenceCheck exists to test for the presence of
exactly one class. |
log | final protected Log log(Code) | | |
ClassPresenceCheck | public ClassPresenceCheck(String targetClass)(Code) | | Each instance of ClassPresenceCheck exists to test for the presence of
exactly one class. That class must be specified as the single required
constructor argument, which must be a non-null String representing the
fully qualified name of the class.
Parameters: targetClass - fully qualified name of the target class throws: IllegalArgumentException - if targetClass is null |
getFailureResult | CheckResult getFailureResult()(Code) | | Get the CheckResult we will return when we fail to touch our
configured targetClass.
CheckResult we will return on failure |
getSuccessResult | CheckResult getSuccessResult()(Code) | | Get the CheckResult we will return when we succeed in touching
our configured targetClass.
CheckResult we will return on success. |
getTargetClass | String getTargetClass()(Code) | | Get the name of the class for which we check.
the fully qualified name of the class for which we check. |
setDescription | public void setDescription(String description)(Code) | | Set the check description which we will return for on calls to
the getDescription() method we're implementing as part of being an
ICheck .
Parameters: description - |
setFailureResult | void setFailureResult(CheckResult failureResult)(Code) | | Set the CheckResult we will return when we fail to touch our
configured targetClass.
Parameters: failureResult - desired CheckResult on failure |
setSuccessResult | void setSuccessResult(CheckResult successResult)(Code) | | Set the CheckResult we will return when we succeed in touching
our configured targetClass.
Parameters: successResult - desired CheckResult on success. |
|
|
|