Package org.jboss.as.controller

Examples of org.jboss.as.controller.ControllerResource


            try {
                ModelNode opNode = operation.getOperation();

                result = operationHandler.execute(operationHandlerContext, opNode, resultHandler);
                ControllerResource txResource = getControllerResource(operationHandlerContext, opNode, operationHandler, resultHandler,
                        address, operationControllerContext);
                if (txResource != null) {
                    transaction.registerResource(txResource);
                }
                return result;
View Full Code Here


        return new TransactionalMultiStepOperationController(executionContext, handler, operationControllerContext, confPerstProvider);
    }

    protected ControllerResource getControllerResource(final OperationContext context, final ModelNode operation, final OperationHandler operationHandler,
            final ResultHandler resultHandler, final PathAddress address, final OperationControllerContext operationControllerContext) {
        ControllerResource resource = null;

        if (operationHandler instanceof ModelUpdateOperationHandler) {
            resource = new DomainModelControllerResource(operationHandler, address, context.getSubModel(), operationControllerContext);
        }
View Full Code Here

        protected void updateModelAndPersist() {
            if (transaction == null) {
                TransactionalMultiStepOperationController.this.commit();
            }
            else {
                ControllerResource resource = new UncommittedModelProviderControllerResource() {

                    @Override
                    public void commit() {
                        TransactionalMultiStepOperationController.this.commit();
                    }
View Full Code Here

        }

        try {
            ModelNode opNode = operation.getOperation();
            final OperationResult result = operationHandler.execute(operationHandlerContext, opNode, resultHandler);
            ControllerResource txResource = getControllerResource(operationHandlerContext, opNode, operationHandler, resultHandler,
                                                                  address, operationControllerContext);
            if (txResource != null) {
                transaction.registerResource(txResource);
            }
            return result;
View Full Code Here

                confPerstProvider, operationControllerContext.getControllerTransactionContext());
    }

    protected ControllerResource getControllerResource(final OperationContext context, final ModelNode operation, final OperationHandler operationHandler,
            final ResultHandler resultHandler, final PathAddress address, final OperationControllerContext operationControllerContext) {
        ControllerResource resource = null;

        if (operationHandler instanceof ModelUpdateOperationHandler) {
            resource = new DomainModelControllerResource(operationHandler, address, context.getSubModel(), operationControllerContext);
        }
View Full Code Here

        protected void updateModelAndPersist() {
            if (transaction == null) {
                TransactionalMultiStepOperationController.this.commit();
            }
            else {
                ControllerResource resource = new UncommittedModelProviderControllerResource() {

                    @Override
                    public void commit() {
                        TransactionalMultiStepOperationController.this.commit();
                    }
View Full Code Here

    }

    @Override
    protected ControllerResource getControllerResource(final OperationContext context, final ModelNode operation, final OperationHandler operationHandler,
            final ResultHandler resultHandler, final PathAddress address, final ModelProvider modelProvider, final ConfigurationPersisterProvider persisterProvider) {
        ControllerResource resource = null;

        if (operationHandler instanceof ModelUpdateOperationHandler) {
            resource = new DomainModelControllerResource(operationHandler, address, context.getSubModel(), modelProvider, persisterProvider);
        }
View Full Code Here

        }

        /** Instead of updating and persisting, we register a resource that does it at commit */
        @Override
        protected void updateModelAndPersist() {
            ControllerResource resource = new UncommittedModelProviderControllerResource() {

                @Override
                public void commit() {
                    TransactionalMultiStepOperationController.this.commit();
                }
View Full Code Here

TOP

Related Classes of org.jboss.as.controller.ControllerResource

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.