java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.model.util.PropertyModelHandlerHelper
- All Implemented Interfaces:
ContextAware
Given a
PropertyModel
offers methods to inject properties into a PropertyContainer
.- Since:
- 1.5.1
-
Field Summary
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
checkFileAttributeSanity
(PropertyModel propertyModel) static boolean
checkResourceAttributeSanity
(PropertyModel propertyModel) static boolean
checkValueNameAttributesSanity
(PropertyModel propertyModel) void
handlePropertyModel
(ContextAwarePropertyContainer capc, PropertyModel propertyModel) Given aPropertyModel
inject relevant properties into the givenContextAwarePropertyContainer
parameter.void
handlePropertyModel
(ContextAwarePropertyContainer capcm, String nameStr, String valueStr, String fileStr, String resourceStr, String scopeStr) Given aPropertyModel
inject relevant properties into the givenContextAwarePropertyContainer
parameter.static void
loadAndSetProperties
(ContextAwarePropertyContainer capc, InputStream istream, ActionUtil.Scope scope) static void
setProperties
(ContextAwarePropertyContainer capc, Properties props, ActionUtil.Scope scope) Add all the properties found in the argument named 'props' to an InterpretationContext.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.Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
Field Details
-
HANDLE_PROPERTY_MODEL_METHOD_NAME
- See Also:
-
-
Constructor Details
-
PropertyModelHandlerHelper
-
-
Method Details
-
handlePropertyModel
public void handlePropertyModel(ContextAwarePropertyContainer capcm, String nameStr, String valueStr, String fileStr, String resourceStr, String scopeStr) Given aPropertyModel
inject relevant properties into the givenContextAwarePropertyContainer
parameter.- Parameters:
capcm
-nameStr
-valueStr
-fileStr
-resourceStr
-scopeStr
-
-
handlePropertyModel
Given aPropertyModel
inject relevant properties into the givenContextAwarePropertyContainer
parameter.- Parameters:
capc
-propertyModel
-
-
checkFileAttributeSanity
-
checkResourceAttributeSanity
-
checkValueNameAttributesSanity
-
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
-