Package ch.qos.logback.core.property
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
public class ResourceExistsPropertyDefiner extends PropertyDefinerBase
In conjunction withPropertyActionsets the named variable to "true" if theresourcespecified by the user is available on the class path, "false" otherwise.- Since:
- 1.1.0
- See Also:
getPropertyValue()
-
-
Constructor Summary
Constructors Constructor Description ResourceExistsPropertyDefiner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetPropertyValue()Returns the string "true" if theresourcespecified by the user is available on the class path, "false" otherwise.StringgetResource()voidsetResource(String resource)The resource to search for on the class path.-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
-