private void buildTransformers_4_0 ( ResourceTransformationDescriptionBuilder builder ) { // We need to do custom transformation of the attribute in the root resource // related to endpoint configs, as these were moved to the root from a previous child resource EndPointWriteTransformer endPointWriteTransformer = new EndPointWriteTransformer ( ) ; builder . getAttributeBuilder ( ) . setDiscard ( DiscardAttributeChecker . ALWAYS , endpointAttrArray ) . end ( ) . addOperationTransformationOverride ( "add" ) //.inheritResourceAttributeDefinitions() // don't inherit as we discard . setCustomOperationTransformer ( new EndPointAddTransformer ( ) ) . end ( ) . addOperationTransformationOverride ( "write-attribute" ) //.inheritResourceAttributeDefinitions() // don't inherit as we discard . setCustomOperationTransformer ( endPointWriteTransformer ) . end ( ) . addOperationTransformationOverride ( "undefine-attribute" ) //.inheritResourceAttributeDefinitions() // don't inherit as we discard . setCustomOperationTransformer ( endPointWriteTransformer ) . end ( ) ; }
EAP 7 . 1