public class PropertyAttributeDefinition extends SimpleAttributeDefinition implements ConfigurationProperty<String>
Modifier and Type | Class and Description |
---|---|
static class |
PropertyAttributeDefinition.Builder |
AttributeDefinition.NameAndGroup
attributeMarshaller, COMPLEX_TYPES, referenceRecorder
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getPropertyName()
Returns the property name for the logging configuration property.
|
int |
hashCode() |
String |
resolvePropertyValue(OperationContext context,
org.jboss.dmr.ModelNode model)
Resolves the value of the model node the type.
|
ModelNodeResolver<String> |
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.
|
String |
toString() |
marshallAsAttribute, marshallAsAttribute, marshallAsElement, parse, parseAndSetParameter
addAccessConstraints, addAllowedValuesToDescription, addCapabilityRequirements, addDeprecatedInfo, addOperationParameterDescription, addOperationParameterDescription, addResourceAttributeDescription, addResourceAttributeDescription, convertParameterExpressions, convertStringExpression, correctValue, getAccessConstraints, getAllowedValues, getAlternatives, getArbitraryDescriptors, getAttributeDeprecatedDescription, getAttributeGroup, getAttributeMarshaller, getAttributeTextDescription, getCorrector, getDefaultValue, getDeprecationData, getFlags, getMeasurementUnit, getName, getNoTextDescription, getParser, getReferenceRecorder, getRequires, getType, getUndefinedMetricValue, getValidator, getXmlName, hasAlternative, hasCapabilityRequirements, isAllowed, isAllowExpression, isAllowNull, isDeprecated, isMarshallable, isMarshallable, isNullSignificant, isRequired, isResourceOnly, isValidatingNull, marshallAsElement, removeCapabilityRequirements, resolveModelAttribute, resolveModelAttribute, resolveValue, resolveValue, validateAndSet, validateOperation
public void setPropertyValue(OperationContext context, org.jboss.dmr.ModelNode model, org.jboss.logmanager.config.PropertyConfigurable configuration) throws OperationFailedException
ConfigurationProperty
ConfigurationProperty.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.setPropertyValue
in interface ConfigurationProperty<String>
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.public ModelNodeResolver<String> resolver()
ConfigurationProperty
resolver
in interface ConfigurationProperty<String>
public String getPropertyName()
ConfigurationProperty
getPropertyName
in interface ConfigurationProperty<String>
public String resolvePropertyValue(OperationContext context, org.jboss.dmr.ModelNode model) throws OperationFailedException
ConfigurationProperty
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.resolvePropertyValue
in interface ConfigurationProperty<String>
context
- the operation context.model
- the model used to resolve the value from.null
.OperationFailedException
- if the value is invalid.Copyright © 2023 JBoss by Red Hat. All rights reserved.