public class PropertyAttributeDefinition extends SimpleAttributeDefinition implements ConfigurationProperty<String>
| Modifier and Type | Class and Description |
|---|---|
static class |
PropertyAttributeDefinition.Builder |
attributeMarshaller, COMPLEX_TYPES| Constructor and Description |
|---|
PropertyAttributeDefinition(String name,
String xmlName,
String propertyName,
ModelNodeResolver<String> resolver,
org.jboss.dmr.ModelNode defaultValue,
org.jboss.dmr.ModelType type,
boolean allowNull,
boolean allowExpression,
MeasurementUnit measurementUnit,
ParameterCorrector corrector,
ParameterValidator validator,
boolean validateNull,
String[] alternatives,
String[] requires,
AttributeMarshaller attributeMarshaller,
boolean resourceOnly,
DeprecationData deprecationData,
AttributeAccess.Flag... flags)
Deprecated.
|
| 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, parseAndSetParameteraddAccessConstraints, addAllowedValuesToDescription, addDeprecatedInfo, addOperationParameterDescription, addOperationParameterDescription, addResourceAttributeDescription, addResourceAttributeDescription, convertParameterExpressions, convertStringExpression, correctValue, getAccessConstraints, getAlternatives, getAttributeDeprecatedDescription, getAttributeMarshaller, getAttributeTextDescription, getCorrector, getDefaultValue, getDeprecationData, getFlags, getMeasurementUnit, getName, getNoTextDescription, getParser, getRequires, getType, getValidator, getXmlName, hasAlternative, isAllowed, isAllowExpression, isAllowNull, isDeprecated, isMarshallable, isMarshallable, isNullSignificant, isRequired, isResourceOnly, isValidatingNull, marshallAsElement, resolveModelAttribute, resolveModelAttribute, resolveValue, resolveValue, validateAndSet, validateOperation@Deprecated public PropertyAttributeDefinition(String name, String xmlName, String propertyName, ModelNodeResolver<String> resolver, org.jboss.dmr.ModelNode defaultValue, org.jboss.dmr.ModelType type, boolean allowNull, boolean allowExpression, MeasurementUnit measurementUnit, ParameterCorrector corrector, ParameterValidator validator, boolean validateNull, String[] alternatives, String[] requires, AttributeMarshaller attributeMarshaller, boolean resourceOnly, DeprecationData deprecationData, AttributeAccess.Flag... flags)
PropertyAttributeDefinition.Builderpublic void setPropertyValue(OperationContext context, org.jboss.dmr.ModelNode model, org.jboss.logmanager.config.PropertyConfigurable configuration) throws OperationFailedException
ConfigurationPropertyConfigurationProperty.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()
ConfigurationPropertyresolver in interface ConfigurationProperty<String>public String getPropertyName()
ConfigurationPropertygetPropertyName in interface ConfigurationProperty<String>public String resolvePropertyValue(OperationContext context, org.jboss.dmr.ModelNode model) throws OperationFailedException
ConfigurationPropertyModelNodeResolver.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 © 2014 JBoss by Red Hat. All rights reserved.