Package org.jboss.as.controller.transform

Examples of org.jboss.as.controller.transform.ResourceTransformationContext.processChildren()


    @Override
    public void transformResource(final ResourceTransformationContext context, final PathAddress address, final Resource resource)
            throws OperationFailedException {
        doTransform(context, address, resource);
        final ResourceTransformationContext childContext = context.addTransformedResource(PathAddress.EMPTY_ADDRESS, resource);
        childContext.processChildren(resource);
    }

    void doTransform(final TransformationContext context, final PathAddress address, final Resource resource) {
        final ModelNode model = resource.getModel();
        for (AttributeDefinition attribute : removableAttributes) {
View Full Code Here


        public void transformResource(ResourceTransformationContext context, PathAddress address, Resource resource) throws OperationFailedException {
            ModelNode model = new ModelNode();
            transformModulesToAttributes(address, resourceName, attributeName, context, model);
            resource.writeModel(model);
            final ResourceTransformationContext childContext = context.addTransformedResource(PathAddress.EMPTY_ADDRESS, resource);
            childContext.processChildren(resource);
        }

        public TransformedOperation transformOperation(TransformationContext context, PathAddress address, ModelNode operation) throws OperationFailedException {
            ModelNode model = new ModelNode();
            transformModulesToAttributes(address, resourceName, attributeName, context, model);
View Full Code Here

        public void transformResource(ResourceTransformationContext context, PathAddress address, Resource resource) throws OperationFailedException {
            ModelNode model = new ModelNode();
            transformModulesToAttributes(address, resourceName, oldName, context, model);
            resource.writeModel(model);
            final ResourceTransformationContext childContext = context.addTransformedResource(PathAddress.EMPTY_ADDRESS, resource);
            childContext.processChildren(resource);
        }

        public TransformedOperation transformOperation(TransformationContext context, PathAddress address, ModelNode operation) throws OperationFailedException {
            ModelNode model = new ModelNode();
            transformModulesToAttributes(address, resourceName, oldName, context, model);
View Full Code Here

                model.get(entry.getKey()).set(entry.getValue());
            }

        }
        ResourceTransformationContext childContext = context.addTransformedResource(PathAddress.EMPTY_ADDRESS, resource);
        childContext.processChildren(resource);
    }

    static AddDefaultValueResourceTransformer create(String name, ModelNode defaultValue) {
        return new AddDefaultValueResourceTransformer(Collections.singletonMap(name, defaultValue));
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.