- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.model.util.PropertyModelHandlerHelper
-
- All Implemented Interfaces:
ContextAware
public class PropertyModelHandlerHelper extends ContextAwareBase
Given aPropertyModeloffers methods to inject properties into aPropertyContainer.- Since:
- 1.5.1
-
-
Field Summary
Fields Modifier and Type Field Description static StringHANDLE_PROPERTY_MODEL_METHOD_NAME-
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
-
Constructor Summary
Constructors Constructor Description PropertyModelHandlerHelper(ContextAware declaredOrigin)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleancheckFileAttributeSanity(PropertyModel propertyModel)static booleancheckResourceAttributeSanity(PropertyModel propertyModel)static booleancheckValueNameAttributesSanity(PropertyModel propertyModel)voidhandlePropertyModel(ContextAwarePropertyContainer capc, PropertyModel propertyModel)Given aPropertyModelinject relevant properties into the givenContextAwarePropertyContainerparameter.voidhandlePropertyModel(ContextAwarePropertyContainer capcm, String nameStr, String valueStr, String fileStr, String resourceStr, String scopeStr)Given aPropertyModelinject relevant properties into the givenContextAwarePropertyContainerparameter.static voidloadAndSetProperties(ContextAwarePropertyContainer capc, InputStream istream, ActionUtil.Scope scope)static voidsetProperties(ContextAwarePropertyContainer capc, Properties props, ActionUtil.Scope scope)Add all the properties found in the argument named 'props' to an InterpretationContext.static voidsetProperty(ContextAwarePropertyContainer capc, String key, String value, ActionUtil.Scope scope)Add all the properties found in the argument named 'props' to an InterpretationContext.-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
-
-
-
Field Detail
-
HANDLE_PROPERTY_MODEL_METHOD_NAME
public static final String HANDLE_PROPERTY_MODEL_METHOD_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PropertyModelHandlerHelper
public PropertyModelHandlerHelper(ContextAware declaredOrigin)
-
-
Method Detail
-
handlePropertyModel
public void handlePropertyModel(ContextAwarePropertyContainer capcm, String nameStr, String valueStr, String fileStr, String resourceStr, String scopeStr)
Given aPropertyModelinject relevant properties into the givenContextAwarePropertyContainerparameter.- Parameters:
capcm-nameStr-valueStr-fileStr-resourceStr-scopeStr-
-
handlePropertyModel
public void handlePropertyModel(ContextAwarePropertyContainer capc, PropertyModel propertyModel)
Given aPropertyModelinject relevant properties into the givenContextAwarePropertyContainerparameter.- Parameters:
capc-propertyModel-
-
checkFileAttributeSanity
public static boolean checkFileAttributeSanity(PropertyModel propertyModel)
-
checkResourceAttributeSanity
public static boolean checkResourceAttributeSanity(PropertyModel propertyModel)
-
checkValueNameAttributesSanity
public static boolean checkValueNameAttributesSanity(PropertyModel propertyModel)
-
setProperty
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.
-
setProperties
public static void setProperties(ContextAwarePropertyContainer capc, Properties props, ActionUtil.Scope scope)
Add all the properties found in the argument named 'props' to an InterpretationContext.
-
loadAndSetProperties
public static void loadAndSetProperties(ContextAwarePropertyContainer capc, InputStream istream, ActionUtil.Scope scope) throws IOException
- Throws:
IOException
-
-