Package org.jboss.as.controller.operations.validation

Examples of org.jboss.as.controller.operations.validation.EnumValidator


            } else if ( POOL_USE_STRICT_MIN.getName().equals(attributeName)) {
                return boolValidator;
            } else if ( USE_FAST_FAIL.getName().equals(attributeName)) {
                return boolValidator;
            } else if (POOL_FLUSH_STRATEGY.getName().equals(attributeName)) {
                return new EnumValidator(FlushStrategy.class, true, true);
            } else {
                throw new OperationFailedException(new ModelNode().set(MESSAGES.invalidParameterName(attributeName)));
            }

        }
View Full Code Here


            } else if ( POOL_USE_STRICT_MIN.getName().equals(attributeName)) {
                return boolValidator;
            } else if ( USE_FAST_FAIL.getName().equals(attributeName)) {
                return boolValidator;
            } else if (POOL_FLUSH_STRATEGY.getName().equals(attributeName)) {
                return new EnumValidator(FlushStrategy.class, true, true);
            } else {
                throw new OperationFailedException(new ModelNode().set(MESSAGES.invalidParameterName(attributeName)));
            }

        }
View Full Code Here

        context.completeStep(OperationContext.RollbackHandler.NOOP_ROLLBACK_HANDLER);
    }

    public static void createAndRegister(final RunningModeControl runningModeControl, final ManagementResourceRegistration resourceRegistration) {
        AttributeDefinition def = SimpleAttributeDefinitionBuilder.create("running-mode", ModelType.STRING)
            .setValidator(new EnumValidator(RunningMode.class, false, false))
                .setFlags(AttributeAccess.Flag.STORAGE_RUNTIME).build();

        resourceRegistration.registerReadOnlyAttribute(def, new RunningModeReadHandler(runningModeControl));
    }
View Full Code Here

TOP

Related Classes of org.jboss.as.controller.operations.validation.EnumValidator

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.