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
FieldsFields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 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 aPropertyModelinject relevant properties into the givenContextAwarePropertyContainerparameter.- Parameters:
capcm-nameStr-valueStr-fileStr-resourceStr-scopeStr-
-
handlePropertyModel
Given aPropertyModelinject relevant properties into the givenContextAwarePropertyContainerparameter.- 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
-