Package org.jboss.as.controller.transform.description

Examples of org.jboss.as.controller.transform.description.DiscardAttributeChecker$DiscardAttributeValueChecker


    private static void buildTransformers1_2_1(ResourceTransformationDescriptionBuilder builder) {
        ResourceTransformationDescriptionBuilder hornetqServer = builder.addChildResource(pathElement(HORNETQ_SERVER));
        rejectDefinedAttributeWithDefaultValue(hornetqServer, CommonAttributes.MAX_SAVED_REPLICATED_JOURNAL_SIZE);

        ResourceTransformationDescriptionBuilder bridge = hornetqServer.addChildResource(BridgeDefinition.PATH);
        bridge.getAttributeBuilder().setDiscard(new DiscardAttributeChecker() {
            @Override
            public boolean isDiscardExpressions() {
                return false;
            }
View Full Code Here


    }

    private static void buildTransformers1_2_0(ResourceTransformationDescriptionBuilder builder) {
        ResourceTransformationDescriptionBuilder hornetqServer = builder.addChildResource(pathElement(HORNETQ_SERVER));
        hornetqServer.getAttributeBuilder()
                .setDiscard(new DiscardAttributeChecker() {
                    @Override
                    public boolean isDiscardExpressions() {
                        return false;
                    }
View Full Code Here

                    .addRename(SEGMENTS, VIRTUAL_NODES.getName())
                    .addRejectCheck(RejectAttributeChecker.SIMPLE_EXPRESSIONS, L1_LIFESPAN, OWNERS, VIRTUAL_NODES, SEGMENTS)
                    .end();

        } else if (InfinispanModel.VERSION_1_4_1.requiresTransformation(version)) {
            DiscardAttributeChecker checker = new DiscardAttributeChecker.DefaultDiscardAttributeChecker(false, true) {
                @Override
                protected boolean isValueDiscardable(PathAddress address, String attributeName, ModelNode attributeValue, TransformationContext context) {
                    return (attributeValue.isDefined() && attributeValue.equals(new ModelNode(1)));
                }
            };
View Full Code Here

TOP

Related Classes of org.jboss.as.controller.transform.description.DiscardAttributeChecker$DiscardAttributeValueChecker

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.