Class FileExistsPropertyDefiner
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.PropertyDefinerBase
ch.qos.logback.core.property.FileExistsPropertyDefiner
- All Implemented Interfaces:
ContextAware, PropertyDefiner
In conjunction with
PropertyAction
sets the named variable to "true" if the file specified by
path property exists, to "false" otherwise.- Author:
- Ceki Gülcü
- See Also:
-
Field Summary
Fields inherited from class ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
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
-
Constructor Details
-
FileExistsPropertyDefiner
public FileExistsPropertyDefiner()
-
-
Method Details
-
getPath
-
setPath
-
getPropertyValue
Returns "true" if the file specified bypathproperty exists. Returns "false" otherwise.- Returns:
- "true"|"false" depending on the existence of file
-