Top Description Fields Constructors Methods
ch.qos.logback.core.property

public Class ResourceExistsPropertyDefiner

extends PropertyDefinerBase
Class Inheritance
Imports
ch.qos.logback.core.PropertyDefinerBase, ch.qos.logback.core.util.Loader, .OptionHelper, java.net.URL

In conjunction with ch.qos.logback.core.joran.action.PropertyAction sets the named variable to "true" if the resource specified by the user is available on the class path, "false" otherwise.
Authors
XuHuisheng, Ceki Gulcu
Since
1.1.0
See Also
getPropertyValue()

Field Summary

Modifier and TypeField and Description
pack-priv String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

"true"|"false" depending on the availability of resource on the classpath
getPropertyValue
()

Implements ch.qos.logback.core.spi.PropertyDefiner.getPropertyValue.

Returns the string "true" if the resource specified by the user is available on the class path, "false" otherwise.
public String
public void
setResource(String resource)

The resource to search for on the class path.

Inherited from ch.qos.logback.core.PropertyDefinerBase:
booleanAsStr

Field Detail

resourceStrback to summary
pack-priv String resourceStr

Constructor Detail

ResourceExistsPropertyDefinerback to summary
public ResourceExistsPropertyDefiner()

Method Detail

getPropertyValueback to summary
public String getPropertyValue()

Implements ch.qos.logback.core.spi.PropertyDefiner.getPropertyValue.

Returns the string "true" if the resource specified by the user is available on the class path, "false" otherwise.

Returns:String

"true"|"false" depending on the availability of resource on the classpath

getResourceback to summary
public String getResource()
setResourceback to summary
public void setResource(String resource)

The resource to search for on the class path.