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, setPropertyValueStringclearRemoved, getConfigs, getConfiguration, getName, getRefs, isRemoved, setRemovedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNameaddPostConfigurationMethod, getConstructorProperties, getPostConfigurationMethods, getPropertyNames, getPropertyValueExpression, getPropertyValueString, hasConstructorProperty, hasProperty, removePostConfigurationMethod, removeProperty, setPostConfigurationMethods, setPostConfigurationMethods, setPropertyValueExpression, setPropertyValueExpression, setPropertyValueStringgetClassName, getModuleNameprivate 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()
HandlerConfigurationgetFormatterName in interface HandlerConfigurationpublic ValueExpression<java.lang.String> getFormatterNameValueExpression()
HandlerConfigurationgetFormatterNameValueExpression in interface HandlerConfigurationpublic void setFormatterName(java.lang.String formatterName)
HandlerConfigurationsetFormatterName in interface HandlerConfigurationformatterName - the formatter namepublic void setFormatterName(java.lang.String expression,
java.lang.String value)
HandlerConfigurationlevel parameter for the
formatter name on the handler.setFormatterName in interface HandlerConfigurationexpression - the expression used to resolve the levelvalue - the value to set the formatter name toHandlerConfiguration.setFormatterName(String),
ValueExpressionprivate void setFormatterName(ValueExpression<java.lang.String> expression)
public java.lang.String getLevel()
HandlerConfigurationgetLevel in interface HandlerConfigurationpublic ValueExpression<java.lang.String> getLevelValueExpression()
HandlerConfigurationgetLevelValueExpression in interface HandlerConfigurationpublic void setLevel(java.lang.String level)
HandlerConfigurationsetLevel in interface HandlerConfigurationlevel - the level to set, may be an expressionValueExpressionpublic void setLevel(java.lang.String expression,
java.lang.String level)
HandlerConfigurationlevel parameter for the
level on the handler.setLevel in interface HandlerConfigurationexpression - the expression used to resolve the levellevel - the level to useHandlerConfiguration.setLevel(String),
ValueExpressionprivate void setLevelValueExpression(ValueExpression<java.lang.String> expression)
public java.lang.String getFilter()
getFilter in interface HandlerConfigurationpublic ValueExpression<java.lang.String> getFilterValueExpression()
HandlerConfigurationgetFilterValueExpression in interface HandlerConfigurationpublic void setFilter(java.lang.String filter)
setFilter in interface HandlerConfigurationpublic void setFilter(java.lang.String expression,
java.lang.String value)
HandlerConfigurationvalue parameter for the
filter on the handler.setFilter in interface HandlerConfigurationexpression - the expressionvalue - the value to set the filter toprivate void setFilter(ValueExpression<java.lang.String> expression)
public java.lang.String getEncoding()
getEncoding in interface HandlerConfigurationpublic ValueExpression<java.lang.String> getEncodingValueExpression()
HandlerConfigurationgetEncodingValueExpression in interface HandlerConfigurationpublic void setEncoding(java.lang.String encoding)
setEncoding in interface HandlerConfigurationpublic void setEncoding(java.lang.String expression,
java.lang.String value)
HandlerConfigurationvalue parameter for the
encoding on the handler.setEncoding in interface HandlerConfigurationexpression - the expressionvalue - the value to set the encoding toHandlerConfiguration.setEncoding(String),
ValueExpressionprivate void setEncoding(ValueExpression<java.lang.String> expression)
public java.lang.String getErrorManagerName()
getErrorManagerName in interface HandlerConfigurationpublic ValueExpression<java.lang.String> getErrorManagerNameValueExpression()
HandlerConfigurationgetErrorManagerNameValueExpression in interface HandlerConfigurationpublic void setErrorManagerName(java.lang.String errorManagerName)
setErrorManagerName in interface HandlerConfigurationpublic void setErrorManagerName(java.lang.String expression,
java.lang.String value)
HandlerConfigurationvalue parameter for the
error manager name on the handler.setErrorManagerName in interface HandlerConfigurationexpression - the expressionvalue - the value to set the error manager name toHandlerConfiguration.setErrorManagerName(String),
ValueExpressionprivate void setErrorManagerName(ValueExpression<java.lang.String> expression)
public java.util.List<java.lang.String> getHandlerNames()
HandlerContainingConfigurablegetHandlerNames in interface HandlerContainingConfigurablepublic void setHandlerNames(java.lang.String... names)
HandlerContainingConfigurablesetHandlerNames in interface HandlerContainingConfigurablenames - the names of the configured handlerspublic void setHandlerNames(java.util.Collection<java.lang.String> names)
HandlerContainingConfigurablesetHandlerNames in interface HandlerContainingConfigurablenames - the names of the configured handlerspublic boolean addHandlerName(java.lang.String name)
HandlerContainingConfigurableaddHandlerName in interface HandlerContainingConfigurablename - the handler nametrue if the name was not already set, false if it waspublic boolean removeHandlerName(java.lang.String name)
HandlerContainingConfigurableremoveHandlerName in interface HandlerContainingConfigurablename - 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>