Package org.jboss.as.logging.handlers
Class LogHandlerListAttributeDefinition
- java.lang.Object
-
- org.jboss.as.controller.AttributeDefinition
-
- org.jboss.as.controller.ListAttributeDefinition
-
- org.jboss.as.controller.SimpleListAttributeDefinition
-
- org.jboss.as.logging.handlers.LogHandlerListAttributeDefinition
-
- All Implemented Interfaces:
Feature,ConfigurationProperty<Set<String>>
public class LogHandlerListAttributeDefinition extends SimpleListAttributeDefinition implements ConfigurationProperty<Set<String>>
Date: 13.10.2011- Author:
- James R. Perkins
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLogHandlerListAttributeDefinition.Builder-
Nested classes/interfaces inherited from class org.jboss.as.controller.AttributeDefinition
AttributeDefinition.NameAndGroup
-
-
Field Summary
-
Fields inherited from class org.jboss.as.controller.AttributeDefinition
COMPLEX_TYPES
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetPropertyName()Returns the property name for the logging configuration property.Set<String>resolvePropertyValue(OperationContext context, org.jboss.dmr.ModelNode model)Resolves the value of the model node the type.ModelNodeResolver<Set<String>>resolver()Returns the resolver for the attribute.voidsetPropertyValue(OperationContext context, org.jboss.dmr.ModelNode model, org.jboss.logmanager.config.PropertyConfigurable configuration)Sets the property on the configuration.-
Methods inherited from class org.jboss.as.controller.SimpleListAttributeDefinition
addAttributeValueTypeDescription, addCapabilityRequirements, addOperationParameterDescription, addOperationParameterValueTypeDescription, addResourceAttributeDescription, addValueTypeDescription, addValueTypeDescription, convertParameterElementExpressions, getReferenceRecorder, getValueAttributeDefinition, getValueType, hasCapabilityRequirements, removeCapabilityRequirements
-
Methods inherited from class org.jboss.as.controller.ListAttributeDefinition
addOperationParameterDescription, addOperationReplyDescription, addOperationReplyValueTypeDescription, addResourceAttributeDescription, convertParameterExpressions, getElementValidator, marshallAsElement, parseAndAddParameterElement
-
Methods inherited from class org.jboss.as.controller.AttributeDefinition
addAccessConstraints, addAllowedValuesToDescription, addDeprecatedInfo, addOperationReplyDescription, convertStringExpression, correctValue, getAccessConstraints, getAllowedValues, getAlternatives, getArbitraryDescriptors, getAttributeDeprecatedDescription, getAttributeGroup, getAttributeTextDescription, getCorrector, getDefaultValue, getDeprecationData, getFlags, getMarshaller, getMeasurementUnit, getName, getNoTextDescription, getParser, getRequires, getStability, getType, getUndefinedMetricValue, getValidator, getXmlName, hasAlternative, isAllowed, isAllowExpression, isDeprecated, isMarshallable, isMarshallable, isNillable, isNullSignificant, isRequired, isRequired, isResourceOnly, marshallAsElement, resolveModelAttribute, resolveModelAttribute, resolveValue, resolveValue, validateAndSet, validateOperation
-
-
-
-
Method Detail
-
resolver
public ModelNodeResolver<Set<String>> resolver()
Description copied from interface:ConfigurationPropertyReturns the resolver for the attribute.- Specified by:
resolverin interfaceConfigurationProperty<Set<String>>- Returns:
- the resolver.
-
getPropertyName
public String getPropertyName()
Description copied from interface:ConfigurationPropertyReturns the property name for the logging configuration property.- Specified by:
getPropertyNamein interfaceConfigurationProperty<Set<String>>- Returns:
- the property name.
-
resolvePropertyValue
public Set<String> resolvePropertyValue(OperationContext context, org.jboss.dmr.ModelNode model) throws OperationFailedException
Description copied from interface:ConfigurationPropertyResolves the value of the model node the type. Uses theModelNodeResolver.resolveValue(org.jboss.as.controller.OperationContext, org.jboss.dmr.ModelNode)to resolve the value. If theresolverisnull, eithernullis returned or a default value based on the type implementation.- Specified by:
resolvePropertyValuein interfaceConfigurationProperty<Set<String>>- Parameters:
context- the operation context.model- the model used to resolve the value from.- Returns:
- the resolved value or
null. - Throws:
OperationFailedException- if the value is invalid.
-
setPropertyValue
public void setPropertyValue(OperationContext context, org.jboss.dmr.ModelNode model, org.jboss.logmanager.config.PropertyConfigurable configuration)
Description copied from interface:ConfigurationPropertySets the property on the configuration. If the result ofConfigurationProperty.resolvePropertyValue(org.jboss.as.controller.OperationContext, org.jboss.dmr.ModelNode)is notnull, the value is set on the property withString.valueOf(Object). If the result isnulland the model is defined,ModelNode.asString()is used for the property, otherwise the property is removed from the handler.- Specified by:
setPropertyValuein interfaceConfigurationProperty<Set<String>>- Parameters:
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.
-
-