final class HandlerConfigurationImpl extends AbstractPropertyConfiguration<java.util.logging.Handler,HandlerConfigurationImpl> implements HandlerConfiguration
AbstractPropertyConfiguration.ConstructAction, AbstractPropertyConfiguration.ModuleFinder
Modifier and Type | Field and Description |
---|---|
private ValueExpression<java.lang.String> |
encoding |
private ValueExpression<java.lang.String> |
errorManagerName |
private ValueExpression<java.lang.String> |
filter |
private ValueExpression<java.lang.String> |
formatterName |
private java.util.List<java.lang.String> |
handlerNames |
private ValueExpression<java.lang.String> |
level |
configs, refs
Constructor and Description |
---|
HandlerConfigurationImpl(LogContextConfigurationImpl configuration,
java.lang.String name,
java.lang.String moduleName,
java.lang.String className,
java.lang.String[] constructorProperties) |
Modifier and Type | Method and Description |
---|---|
boolean |
addHandlerName(java.lang.String name)
Add a handler name to this logger.
|
(package private) ConfigAction<java.util.logging.Handler> |
getConstructAction() |
(package private) java.lang.String |
getDescription() |
java.lang.String |
getEncoding() |
ValueExpression<java.lang.String> |
getEncodingValueExpression()
Returns the encoding which may be an expression.
|
java.lang.String |
getErrorManagerName() |
ValueExpression<java.lang.String> |
getErrorManagerNameValueExpression()
Returns the error manager name which may be an expression.
|
java.lang.String |
getFilter() |
ValueExpression<java.lang.String> |
getFilterValueExpression()
Returns a filter that may be an expression.
|
java.lang.String |
getFormatterName()
Get the name of the configured formatter for this handler.
|
ValueExpression<java.lang.String> |
getFormatterNameValueExpression()
Gets the formatter name which may be an expression.
|
java.util.List<java.lang.String> |
getHandlerNames()
Get the names of the configured handlers.
|
java.lang.String |
getLevel()
Gets the level set on the handler.
|
ValueExpression<java.lang.String> |
getLevelValueExpression()
Returns the level that may be an expression.
|
(package private) ConfigAction<java.lang.Void> |
getRemoveAction() |
boolean |
removeHandlerName(java.lang.String name)
Remove a handler name from this logger.
|
void |
setEncoding(java.lang.String encoding) |
void |
setEncoding(java.lang.String expression,
java.lang.String value)
Sets the expression value for the encoding.
|
private void |
setEncoding(ValueExpression<java.lang.String> expression) |
void |
setErrorManagerName(java.lang.String errorManagerName) |
void |
setErrorManagerName(java.lang.String expression,
java.lang.String value)
Sets the expression value for the error manager name.
|
private void |
setErrorManagerName(ValueExpression<java.lang.String> expression) |
void |
setFilter(java.lang.String filter) |
void |
setFilter(java.lang.String expression,
java.lang.String value)
Sets the expression value and for the filter.
|
private void |
setFilter(ValueExpression<java.lang.String> expression) |
void |
setFormatterName(java.lang.String formatterName)
Set the name of the configured formatter for this handler.
|
void |
setFormatterName(java.lang.String expression,
java.lang.String value)
Sets the expression value for the formatter name.
|
private void |
setFormatterName(ValueExpression<java.lang.String> expression) |
void |
setHandlerNames(java.util.Collection<java.lang.String> names)
Set the names of the configured handlers.
|
void |
setHandlerNames(java.lang.String... names)
Set the names of the configured handlers.
|
void |
setLevel(java.lang.String level)
Sets the level on the handler.
|
void |
setLevel(java.lang.String expression,
java.lang.String level)
Sets the expression value for the level.
|
private void |
setLevelValueExpression(ValueExpression<java.lang.String> expression) |
addPostConfigurationActions, addPostConfigurationMethod, contains, getActualClass, getClassName, getConstructorProperties, getConstructorPropertyType, getModuleName, getPostConfigurationMethods, getPropertyGetter, getPropertyNames, getPropertySetter, getPropertyType, getPropertyValueExpression, getPropertyValueString, hasConstructorProperty, hasProperty, removePostConfigurationActions, removePostConfigurationMethod, removeProperty, setPostConfigurationMethods, setPostConfigurationMethods, setPropertyValueExpression, setPropertyValueExpression, setPropertyValueString
clearRemoved, getConfigs, getConfiguration, getName, getRefs, isRemoved, setRemoved
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
addPostConfigurationMethod, getConstructorProperties, getPostConfigurationMethods, getPropertyNames, getPropertyValueExpression, getPropertyValueString, hasConstructorProperty, hasProperty, removePostConfigurationMethod, removeProperty, setPostConfigurationMethods, setPostConfigurationMethods, setPropertyValueExpression, setPropertyValueExpression, setPropertyValueString
getClassName, getModuleName
private final java.util.List<java.lang.String> handlerNames
private ValueExpression<java.lang.String> formatterName
private ValueExpression<java.lang.String> level
private ValueExpression<java.lang.String> filter
private ValueExpression<java.lang.String> encoding
private ValueExpression<java.lang.String> errorManagerName
HandlerConfigurationImpl(LogContextConfigurationImpl configuration, java.lang.String name, java.lang.String moduleName, java.lang.String className, java.lang.String[] constructorProperties)
public java.lang.String getFormatterName()
HandlerConfiguration
getFormatterName
in interface HandlerConfiguration
public ValueExpression<java.lang.String> getFormatterNameValueExpression()
HandlerConfiguration
getFormatterNameValueExpression
in interface HandlerConfiguration
public void setFormatterName(java.lang.String formatterName)
HandlerConfiguration
setFormatterName
in interface HandlerConfiguration
formatterName
- the formatter namepublic void setFormatterName(java.lang.String expression, java.lang.String value)
HandlerConfiguration
level
parameter for the
formatter name on the handler.setFormatterName
in interface HandlerConfiguration
expression
- the expression used to resolve the levelvalue
- the value to set the formatter name toHandlerConfiguration.setFormatterName(String)
,
ValueExpression
private void setFormatterName(ValueExpression<java.lang.String> expression)
public java.lang.String getLevel()
HandlerConfiguration
getLevel
in interface HandlerConfiguration
public ValueExpression<java.lang.String> getLevelValueExpression()
HandlerConfiguration
getLevelValueExpression
in interface HandlerConfiguration
public void setLevel(java.lang.String level)
HandlerConfiguration
setLevel
in interface HandlerConfiguration
level
- the level to set, may be an expressionValueExpression
public void setLevel(java.lang.String expression, java.lang.String level)
HandlerConfiguration
level
parameter for the
level on the handler.setLevel
in interface HandlerConfiguration
expression
- the expression used to resolve the levellevel
- the level to useHandlerConfiguration.setLevel(String)
,
ValueExpression
private void setLevelValueExpression(ValueExpression<java.lang.String> expression)
public java.lang.String getFilter()
getFilter
in interface HandlerConfiguration
public ValueExpression<java.lang.String> getFilterValueExpression()
HandlerConfiguration
getFilterValueExpression
in interface HandlerConfiguration
public void setFilter(java.lang.String filter)
setFilter
in interface HandlerConfiguration
public void setFilter(java.lang.String expression, java.lang.String value)
HandlerConfiguration
value
parameter for the
filter on the handler.setFilter
in interface HandlerConfiguration
expression
- the expressionvalue
- the value to set the filter toprivate void setFilter(ValueExpression<java.lang.String> expression)
public java.lang.String getEncoding()
getEncoding
in interface HandlerConfiguration
public ValueExpression<java.lang.String> getEncodingValueExpression()
HandlerConfiguration
getEncodingValueExpression
in interface HandlerConfiguration
public void setEncoding(java.lang.String encoding)
setEncoding
in interface HandlerConfiguration
public void setEncoding(java.lang.String expression, java.lang.String value)
HandlerConfiguration
value
parameter for the
encoding on the handler.setEncoding
in interface HandlerConfiguration
expression
- the expressionvalue
- the value to set the encoding toHandlerConfiguration.setEncoding(String)
,
ValueExpression
private void setEncoding(ValueExpression<java.lang.String> expression)
public java.lang.String getErrorManagerName()
getErrorManagerName
in interface HandlerConfiguration
public ValueExpression<java.lang.String> getErrorManagerNameValueExpression()
HandlerConfiguration
getErrorManagerNameValueExpression
in interface HandlerConfiguration
public void setErrorManagerName(java.lang.String errorManagerName)
setErrorManagerName
in interface HandlerConfiguration
public void setErrorManagerName(java.lang.String expression, java.lang.String value)
HandlerConfiguration
value
parameter for the
error manager name on the handler.setErrorManagerName
in interface HandlerConfiguration
expression
- the expressionvalue
- the value to set the error manager name toHandlerConfiguration.setErrorManagerName(String)
,
ValueExpression
private void setErrorManagerName(ValueExpression<java.lang.String> expression)
public java.util.List<java.lang.String> getHandlerNames()
HandlerContainingConfigurable
getHandlerNames
in interface HandlerContainingConfigurable
public void setHandlerNames(java.lang.String... names)
HandlerContainingConfigurable
setHandlerNames
in interface HandlerContainingConfigurable
names
- the names of the configured handlerspublic void setHandlerNames(java.util.Collection<java.lang.String> names)
HandlerContainingConfigurable
setHandlerNames
in interface HandlerContainingConfigurable
names
- the names of the configured handlerspublic boolean addHandlerName(java.lang.String name)
HandlerContainingConfigurable
addHandlerName
in interface HandlerContainingConfigurable
name
- the handler nametrue
if the name was not already set, false
if it waspublic boolean removeHandlerName(java.lang.String name)
HandlerContainingConfigurable
removeHandlerName
in interface HandlerContainingConfigurable
name
- the handler nametrue
if the name was removed, false
if it was not presentjava.lang.String getDescription()
getDescription
in class AbstractPropertyConfiguration<java.util.logging.Handler,HandlerConfigurationImpl>
ConfigAction<java.util.logging.Handler> getConstructAction()
getConstructAction
in class AbstractPropertyConfiguration<java.util.logging.Handler,HandlerConfigurationImpl>
ConfigAction<java.lang.Void> getRemoveAction()
getRemoveAction
in class AbstractBasicConfiguration<java.util.logging.Handler,HandlerConfigurationImpl>