public class JndiPropertyFilter extends AbstractPropertyFilter
This filter retrieves the property value by the name from the JNDI resources.
Exammple configuration is:Modifier and Type | Field and Description |
---|---|
static String |
CONTAINER_PREFIX
JNDI prefix used in a J2EE container
|
Constructor and Description |
---|
JndiPropertyFilter() |
Modifier and Type | Method and Description |
---|---|
protected String |
getProperty(org.apache.log4j.spi.LoggingEvent event,
String name)
Finds the property value by the name from the underlying environment.
|
boolean |
isResourceRef()
Return whether the lookup occurs in a J2EE container.
|
void |
setResourceRef(boolean resourceRef)
Set whether the lookup occurs in a J2EE container, i.e.
|
decide, getName, getOnMatch, getOnMatchOption, getValue, setName, setOnMatch, setOnMatchOption, setValue
public static final String CONTAINER_PREFIX
public boolean isResourceRef()
public void setResourceRef(boolean resourceRef)
resourceRef
- protected String getProperty(org.apache.log4j.spi.LoggingEvent event, String name)
AbstractPropertyFilter
getProperty
in class AbstractPropertyFilter
Copyright © 2012–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.