public interface ConfigurationProperty<T>
Modifier and Type | Method and Description |
---|---|
String |
getPropertyName()
Returns the property name for the logging configuration property.
|
T |
resolvePropertyValue(OperationContext context,
org.jboss.dmr.ModelNode model)
Resolves the value of the model node the type.
|
ModelNodeResolver<T> |
resolver()
Returns the resolver for the attribute.
|
void |
setPropertyValue(OperationContext context,
org.jboss.dmr.ModelNode model,
org.jboss.logmanager.config.PropertyConfigurable configuration)
Sets the property on the configuration.
|
ModelNodeResolver<T> resolver()
String getPropertyName()
T resolvePropertyValue(OperationContext context, org.jboss.dmr.ModelNode model) throws OperationFailedException
ModelNodeResolver.resolveValue(org.jboss.as.controller.OperationContext,
org.jboss.dmr.ModelNode)
to resolve the value. If the resolver
is null
, either
null
is returned or a default value based on the type implementation.context
- the operation context.model
- the model used to resolve the value from.null
.OperationFailedException
- if the value is invalid.void setPropertyValue(OperationContext context, org.jboss.dmr.ModelNode model, org.jboss.logmanager.config.PropertyConfigurable configuration) throws OperationFailedException
resolvePropertyValue(org.jboss.as.controller.OperationContext, org.jboss.dmr.ModelNode)
is not
null
, the value is set on the property with String.valueOf(Object)
. If the result is null
and the model is defined, ModelNode.asString()
is used for the property, otherwise the
property is removed from the handler.context
- the operation context used to resolve the value from the model.model
- the model used to resolve the value.configuration
- the configuration to set the value on.OperationFailedException
- if the value is invalid.Copyright © 2023 JBoss by Red Hat. All rights reserved.