Class HandlerConfigurationImpl
java.lang.Object
org.jboss.logmanager.config.AbstractBasicConfiguration<Handler, HandlerConfigurationImpl>
org.jboss.logmanager.config.AbstractPropertyConfiguration<Handler, HandlerConfigurationImpl>
org.jboss.logmanager.config.HandlerConfigurationImpl
- All Implemented Interfaces:
HandlerConfiguration, HandlerContainingConfigurable, NamedConfigurable, ObjectConfigurable, PropertyConfigurable
final class HandlerConfigurationImpl
extends AbstractPropertyConfiguration<Handler, HandlerConfigurationImpl>
implements HandlerConfiguration
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractPropertyConfiguration
AbstractPropertyConfiguration.ConstructAction, AbstractPropertyConfiguration.ModuleFinder -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ValueExpression<String> private ValueExpression<String> private ValueExpression<String> private ValueExpression<String> private ValueExpression<String> Fields inherited from class AbstractBasicConfiguration
configs, refs -
Constructor Summary
ConstructorsConstructorDescriptionHandlerConfigurationImpl(LogContextConfigurationImpl configuration, String name, String moduleName, String className, String[] constructorProperties) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddHandlerName(String name) Add a handler name to this logger.(package private) ConfigAction<Handler> (package private) StringReturns the encoding which may be an expression.Returns the error manager name which may be an expression.Returns a filter that may be an expression.Get the name of the configured formatter for this handler.Gets the formatter name which may be an expression.Get the names of the configured handlers.getLevel()Gets the level set on the handler.Returns the level that may be an expression.(package private) ConfigAction<Void> booleanremoveHandlerName(String name) Remove a handler name from this logger.voidsetEncoding(String encoding) voidsetEncoding(String expression, String value) Sets the expression value for the encoding.private voidsetEncoding(ValueExpression<String> expression) voidsetErrorManagerName(String errorManagerName) voidsetErrorManagerName(String expression, String value) Sets the expression value for the error manager name.private voidsetErrorManagerName(ValueExpression<String> expression) voidvoidSets the expression value and for the filter.private voidsetFilter(ValueExpression<String> expression) voidsetFormatterName(String formatterName) Set the name of the configured formatter for this handler.voidsetFormatterName(String expression, String value) Sets the expression value for the formatter name.private voidsetFormatterName(ValueExpression<String> expression) voidsetHandlerNames(String... names) Set the names of the configured handlers.voidsetHandlerNames(Collection<String> names) Set the names of the configured handlers.voidSets the level on the handler.voidSets the expression value for the level.private voidsetLevelValueExpression(ValueExpression<String> expression) Methods inherited from class AbstractPropertyConfiguration
addPostConfigurationActions, addPostConfigurationMethod, contains, getActualClass, getClassName, getConstructorProperties, getConstructorPropertyType, getModuleName, getPostConfigurationMethods, getPropertyGetter, getPropertyNames, getPropertySetter, getPropertyType, getPropertyValueExpression, getPropertyValueString, hasConstructorProperty, hasProperty, removePostConfigurationActions, removePostConfigurationMethod, removeProperty, setPostConfigurationMethods, setPostConfigurationMethods, setPropertyValueExpression, setPropertyValueExpression, setPropertyValueStringMethods inherited from class AbstractBasicConfiguration
clearRemoved, getConfigs, getConfiguration, getName, getRefs, isRemoved, setRemovedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface NamedConfigurable
getNameMethods inherited from interface ObjectConfigurable
getClassName, getModuleNameMethods inherited from interface PropertyConfigurable
addPostConfigurationMethod, getConstructorProperties, getPostConfigurationMethods, getPropertyNames, getPropertyValueExpression, getPropertyValueString, hasConstructorProperty, hasProperty, removePostConfigurationMethod, removeProperty, setPostConfigurationMethods, setPostConfigurationMethods, setPropertyValueExpression, setPropertyValueExpression, setPropertyValueString
-
Field Details
-
handlerNames
-
formatterName
-
level
-
filter
-
encoding
-
errorManagerName
-
-
Constructor Details
-
HandlerConfigurationImpl
HandlerConfigurationImpl(LogContextConfigurationImpl configuration, String name, String moduleName, String className, String[] constructorProperties)
-
-
Method Details
-
getFormatterName
Description copied from interface:HandlerConfigurationGet the name of the configured formatter for this handler.- Specified by:
getFormatterNamein interfaceHandlerConfiguration- Returns:
- the formatter name
-
getFormatterNameValueExpression
Description copied from interface:HandlerConfigurationGets the formatter name which may be an expression.- Specified by:
getFormatterNameValueExpressionin interfaceHandlerConfiguration- Returns:
- the formatter name
-
setFormatterName
Description copied from interface:HandlerConfigurationSet the name of the configured formatter for this handler.- Specified by:
setFormatterNamein interfaceHandlerConfiguration- Parameters:
formatterName- the formatter name
-
setFormatterName
Description copied from interface:HandlerConfigurationSets the expression value for the formatter name. This method will not parse the expression for the value and instead use thelevelparameter for the formatter name on the handler.- Specified by:
setFormatterNamein interfaceHandlerConfiguration- Parameters:
expression- the expression used to resolve the levelvalue- the value to set the formatter name to- See Also:
-
setFormatterName
-
getLevel
Description copied from interface:HandlerConfigurationGets the level set on the handler.- Specified by:
getLevelin interfaceHandlerConfiguration- Returns:
- the level
-
getLevelValueExpression
Description copied from interface:HandlerConfigurationReturns the level that may be an expression.- Specified by:
getLevelValueExpressionin interfaceHandlerConfiguration- Returns:
- the level
-
setLevel
Description copied from interface:HandlerConfigurationSets the level on the handler.- Specified by:
setLevelin interfaceHandlerConfiguration- Parameters:
level- the level to set, may be an expression- See Also:
-
setLevel
Description copied from interface:HandlerConfigurationSets the expression value for the level. This method will not parse the expression for the value and instead use thelevelparameter for the level on the handler.- Specified by:
setLevelin interfaceHandlerConfiguration- Parameters:
expression- the expression used to resolve the levellevel- the level to use- See Also:
-
setLevelValueExpression
-
getFilter
- Specified by:
getFilterin interfaceHandlerConfiguration
-
getFilterValueExpression
Description copied from interface:HandlerConfigurationReturns a filter that may be an expression.- Specified by:
getFilterValueExpressionin interfaceHandlerConfiguration- Returns:
- the filter
-
setFilter
- Specified by:
setFilterin interfaceHandlerConfiguration
-
setFilter
Description copied from interface:HandlerConfigurationSets the expression value and for the filter. This method will not parse the expression for the value and instead use thevalueparameter for the filter on the handler.- Specified by:
setFilterin interfaceHandlerConfiguration- Parameters:
expression- the expressionvalue- the value to set the filter to
-
setFilter
-
getEncoding
- Specified by:
getEncodingin interfaceHandlerConfiguration
-
getEncodingValueExpression
Description copied from interface:HandlerConfigurationReturns the encoding which may be an expression.- Specified by:
getEncodingValueExpressionin interfaceHandlerConfiguration- Returns:
- the encoding
-
setEncoding
- Specified by:
setEncodingin interfaceHandlerConfiguration
-
setEncoding
Description copied from interface:HandlerConfigurationSets the expression value for the encoding. This method will not parse the expression for the value and instead use thevalueparameter for the encoding on the handler.- Specified by:
setEncodingin interfaceHandlerConfiguration- Parameters:
expression- the expressionvalue- the value to set the encoding to- See Also:
-
setEncoding
-
getErrorManagerName
- Specified by:
getErrorManagerNamein interfaceHandlerConfiguration
-
getErrorManagerNameValueExpression
Description copied from interface:HandlerConfigurationReturns the error manager name which may be an expression.- Specified by:
getErrorManagerNameValueExpressionin interfaceHandlerConfiguration- Returns:
- the error manager name
-
setErrorManagerName
- Specified by:
setErrorManagerNamein interfaceHandlerConfiguration
-
setErrorManagerName
Description copied from interface:HandlerConfigurationSets the expression value for the error manager name. This method will not parse the expression for the value and instead use thevalueparameter for the error manager name on the handler.- Specified by:
setErrorManagerNamein interfaceHandlerConfiguration- Parameters:
expression- the expressionvalue- the value to set the error manager name to- See Also:
-
setErrorManagerName
-
getHandlerNames
Description copied from interface:HandlerContainingConfigurableGet the names of the configured handlers.- Specified by:
getHandlerNamesin interfaceHandlerContainingConfigurable- Returns:
- the names of the configured handlers
-
setHandlerNames
Description copied from interface:HandlerContainingConfigurableSet the names of the configured handlers.- Specified by:
setHandlerNamesin interfaceHandlerContainingConfigurable- Parameters:
names- the names of the configured handlers
-
setHandlerNames
Description copied from interface:HandlerContainingConfigurableSet the names of the configured handlers.- Specified by:
setHandlerNamesin interfaceHandlerContainingConfigurable- Parameters:
names- the names of the configured handlers
-
addHandlerName
Description copied from interface:HandlerContainingConfigurableAdd a handler name to this logger.- Specified by:
addHandlerNamein interfaceHandlerContainingConfigurable- Parameters:
name- the handler name- Returns:
trueif the name was not already set,falseif it was
-
removeHandlerName
Description copied from interface:HandlerContainingConfigurableRemove a handler name from this logger.- Specified by:
removeHandlerNamein interfaceHandlerContainingConfigurable- Parameters:
name- the handler name- Returns:
trueif the name was removed,falseif it was not present
-
getDescription
String getDescription()- Specified by:
getDescriptionin classAbstractPropertyConfiguration<Handler, HandlerConfigurationImpl>
-
getConstructAction
ConfigAction<Handler> getConstructAction()- Overrides:
getConstructActionin classAbstractPropertyConfiguration<Handler, HandlerConfigurationImpl>
-
getRemoveAction
ConfigAction<Void> getRemoveAction()- Overrides:
getRemoveActionin classAbstractBasicConfiguration<Handler, HandlerConfigurationImpl>
-