Top Description Fields Constructors Methods
ch.qos.logback.core.model.util

public Class PropertyModelHandlerHelper

extends ContextAwareBase
Class Inheritance
Imports
ch.qos.logback.core.joran.action.ActionUtil, ch.qos.logback.core.model.ModelConstants, .PropertyModel, ch.qos.logback.core.spi.ContextAware, .ContextAwareBase, .ContextAwarePropertyContainer, .PropertyContainer, ch.qos.logback.core.util.ContextUtil, .Loader, .OptionHelper, java.io.FileInputStream, .FileNotFoundException, .IOException, .InputStream, java.net.URL, java.util.Properties

Given a PropertyModel offers methods to inject properties into a PropertyContainer.
Since
1.5.1

Field Summary

Modifier and TypeField and Description
public static final String
Inherited from ch.qos.logback.core.spi.ContextAwareBase:
context

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static boolean
public static boolean
public static boolean
public void
handlePropertyModel(ContextAwarePropertyContainer capcm, String nameStr, String valueStr, String fileStr, String resourceStr, String scopeStr)

Given a PropertyModel inject relevant properties into the given ContextAwarePropertyContainer parameter.

public void
handlePropertyModel(ContextAwarePropertyContainer capc, PropertyModel propertyModel)

Given a PropertyModel inject relevant properties into the given ContextAwarePropertyContainer parameter.

public static void
public static void
setProperties(ContextAwarePropertyContainer capc, Properties props, ActionUtil.Scope scope)

Add all the properties found in the argument named 'props' to an InterpretationContext.

public static void
setProperty(ContextAwarePropertyContainer capc, String key, String value, ActionUtil.Scope scope)

Add all the properties found in the argument named 'props' to an InterpretationContext.

Inherited from ch.qos.logback.core.spi.ContextAwareBase:
addErroraddErroraddInfoaddInfoaddStatusaddWarnaddWarngetContextgetDeclaredOrigingetStatusManagersetContext

Field Detail

HANDLE_PROPERTY_MODEL_METHOD_NAMEback to summary
public static final String HANDLE_PROPERTY_MODEL_METHOD_NAME

Constructor Detail

PropertyModelHandlerHelperback to summary
public PropertyModelHandlerHelper(ContextAware declaredOrigin)

Method Detail

checkFileAttributeSanityback to summary
public static boolean checkFileAttributeSanity(PropertyModel propertyModel)
checkResourceAttributeSanityback to summary
public static boolean checkResourceAttributeSanity(PropertyModel propertyModel)
checkValueNameAttributesSanityback to summary
public static boolean checkValueNameAttributesSanity(PropertyModel propertyModel)
handlePropertyModelback to summary
public void handlePropertyModel(ContextAwarePropertyContainer capcm, String nameStr, String valueStr, String fileStr, String resourceStr, String scopeStr)

Given a PropertyModel inject relevant properties into the given ContextAwarePropertyContainer parameter.

handlePropertyModelback to summary
public void handlePropertyModel(ContextAwarePropertyContainer capc, PropertyModel propertyModel)

Given a PropertyModel inject relevant properties into the given ContextAwarePropertyContainer parameter.

loadAndSetPropertiesback to summary
public static void loadAndSetProperties(ContextAwarePropertyContainer capc, InputStream istream, ActionUtil.Scope scope) throws IOException
setPropertiesback to summary
public static void setProperties(ContextAwarePropertyContainer capc, Properties props, ActionUtil.Scope scope)

Add all the properties found in the argument named 'props' to an InterpretationContext.

setPropertyback to summary
public static void setProperty(ContextAwarePropertyContainer capc, String key, String value, ActionUtil.Scope scope)

Add all the properties found in the argument named 'props' to an InterpretationContext.