Class ResourceExistsPropertyDefiner
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.PropertyDefinerBase
ch.qos.logback.core.property.ResourceExistsPropertyDefiner
- All Implemented Interfaces:
ContextAware, PropertyDefiner
In conjunction with
PropertyAction sets
the named variable to "true" if the resource specified
by the user is available on the class path, "false" otherwise.- Since:
- 1.1.0
- See Also:
-
Field Summary
FieldsFields inherited from class ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the string "true" if theresourcespecified by the user is available on the class path, "false" otherwise.voidsetResource(String resource) The resource to search for on the class path.Methods inherited from class PropertyDefinerBase
booleanAsStrMethods inherited from class ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
Field Details
-
resourceStr
String resourceStr
-
-
Constructor Details
-
ResourceExistsPropertyDefiner
public ResourceExistsPropertyDefiner()
-
-
Method Details
-
getResource
-
setResource
The resource to search for on the class path.- Parameters:
resource-
-
getPropertyValue
-