Package org.jboss.as.controller.transform

Examples of org.jboss.as.controller.transform.AttributeTransformationRequirementChecker$ObjectFieldsAttributeTransformationRequirementChecker


        Map<String, AttributeTransformationRequirementChecker> fieldCheckers = new HashMap<String, AttributeTransformationRequirementChecker>();
        fieldCheckers.put(AbstractSocketBindingResourceDefinition.CLIENT_MAPPING_SOURCE_NETWORK.getName(), AttributeTransformationRequirementChecker.SIMPLE_EXPRESSIONS);
        fieldCheckers.put(AbstractSocketBindingResourceDefinition.CLIENT_MAPPING_DESTINATION_ADDRESS.getName(), AttributeTransformationRequirementChecker.SIMPLE_EXPRESSIONS);
        fieldCheckers.put(AbstractSocketBindingResourceDefinition.CLIENT_MAPPING_DESTINATION_PORT.getName(), AttributeTransformationRequirementChecker.SIMPLE_EXPRESSIONS);

        AttributeTransformationRequirementChecker elementChecker = new AttributeTransformationRequirementChecker.ObjectFieldsAttributeTransformationRequirementChecker(fieldCheckers);
        AttributeTransformationRequirementChecker attrChecker = new AttributeTransformationRequirementChecker.ListAttributeTransformationRequirementChecker(elementChecker);
        RejectExpressionValuesTransformer rejectExpression = new RejectExpressionValuesTransformer(SocketBindingResourceDefinition.CLIENT_MAPPINGS.getName(), attrChecker);
        TransformersSubRegistration reg = parent.registerSubResource(SocketBindingResourceDefinition.PATH, (ResourceTransformer) rejectExpression);

        reg.registerOperationTransformer(ADD, rejectExpression);
        reg.registerOperationTransformer(WRITE_ATTRIBUTE_OPERATION, rejectExpression.getWriteAttributeTransformer());
View Full Code Here

TOP

Related Classes of org.jboss.as.controller.transform.AttributeTransformationRequirementChecker$ObjectFieldsAttributeTransformationRequirementChecker

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.