Examples of ResourceDefinition


Examples of org.jboss.as.controller.ResourceDefinition

        // Transform the model recursively
        final ModelNode recursive = Resource.Tools.readModel(resource);
        final ModelNode result = transformModel(context, recursive);
        // Create the target registration based on the old resource definition
        final TransformationTarget target = context.getTarget();
        final ResourceDefinition definition = loader.load(target);
        final ManagementResourceRegistration targetDefinition = ManagementResourceRegistration.Factory.create(definition);
        final Resource transformed = TransformationUtils.modelToResource(address, targetDefinition, result, false);
        // Add the model recursively
        context.addTransformedRecursiveResource(PathAddress.EMPTY_ADDRESS, transformed);
    }
View Full Code Here

Examples of org.jboss.as.controller.ResourceDefinition

        // Transform the model recursively
        final ModelNode recursive = Resource.Tools.readModel(resource);
        final ModelNode result = transformModel(context, recursive);
        // Create the target registration based on the old resource definition
        final TransformationTarget target = context.getTarget();
        final ResourceDefinition definition = loader.load(target);
        final ManagementResourceRegistration targetDefinition = ManagementResourceRegistration.Factory.create(definition);
        final Resource transformed = TransformationUtils.modelToResource(targetDefinition, result, false);
        // Add the model recursively
        context.addTransformedRecursiveResource(PathAddress.EMPTY_ADDRESS, transformed);
    }
View Full Code Here

Examples of org.jboss.as.controller.ResourceDefinition

        securityRole.registerOperationHandler(REMOVE, SecurityRoleRemove.INSTANCE, SecurityRoleRemove.INSTANCE);
        SecurityRoleAttributeHandler.INSTANCE.registerAttributes(securityRole, registerRuntimeOnly);

        if (context.isRuntimeOnlyRegistrationValid()) {

            ResourceDefinition deploymentsDef = new SimpleResourceDefinition(PathElement.pathElement(ModelDescriptionConstants.SUBSYSTEM, SUBSYSTEM_NAME), getResourceDescriptionResolver("deployed"));
            final ManagementResourceRegistration deploymentsRegistration = subsystem.registerDeploymentModel(deploymentsDef);
            final ManagementResourceRegistration serverModel = deploymentsRegistration.registerSubModel(new HornetQServerResourceDefinition(true));

            // JMS Queues
            final ManagementResourceRegistration deploymentQueue = serverModel.registerSubModel(JMS_QUEUE_PATH, MessagingSubsystemProviders.JMS_QUEUE_RESOURCE);
View Full Code Here

Examples of org.jboss.as.controller.ResourceDefinition

        subsystemRegistration.registerSubModel(TimerServiceResourceDefinition.INSTANCE);

        // subsystem=ejb3/thread-pool=*
        subsystemRegistration.registerSubModel(EJB3ThreadPoolResourceDefinition.INSTANCE);

        ResourceDefinition deploymentsDef = new SimpleResourceDefinition(PathElement.pathElement(ModelDescriptionConstants.SUBSYSTEM, SUBSYSTEM_NAME),
                getResourceDescriptionResolver("deployed"));
        final ManagementResourceRegistration deploymentsRegistration = subsystem.registerDeploymentModel(deploymentsDef);
        deploymentsRegistration.registerSubModel(EntityBeanResourceDefinition.INSTANCE);
        deploymentsRegistration.registerSubModel(MessageDrivenBeanResourceDefinition.INSTANCE);
        deploymentsRegistration.registerSubModel(SingletonBeanDeploymentResourceDefinition.INSTANCE);
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.