Examples of subTarget()


Examples of org.jboss.msc.service.ServiceContainer.subTarget()

                raName, root, module.getClassLoader(), cmd, raxml, null, deploymentServiceName);

            raDeployer.setConfiguration(config.getValue());

            try {
                WritableServiceBasedNamingStore.pushOwner(container.subTarget());
                ClassLoader old = SecurityActions.getThreadContextClassLoader();
                try {
                    SecurityActions.setThreadContextClassLoader(module.getClassLoader());
                    raxmlDeployment = raDeployer.doDeploy();
                } finally {
View Full Code Here

Examples of org.jboss.msc.service.ServiceContainer.subTarget()

                    ServiceName deploymentService = Services.deploymentUnitName(contextName);
                    if (container.getService(deploymentService) != null && container.getService(osgiDeploymentService) == null) {
                        ServiceName serviceName = ModuleRegistrationService.getServiceName(contextName);
                        try {
                            log.tracef("Register service: %s", serviceName);
                            ServiceTarget serviceTarget = container.subTarget();
                            ModuleRegistrationService.addService(serviceTarget, dep, contextName);
                        } catch (ServiceRegistryException ex) {
                            throw new IllegalStateException("Cannot register service: " + serviceName, ex);
                        }
                    }
View Full Code Here

Examples of org.jboss.msc.service.ServiceContainer.subTarget()

                raName, root, module.getClassLoader(), cmd, raxml, null);

            raDeployer.setConfiguration(config.getValue());

            try {
                WritableServiceBasedNamingStore.pushOwner(container.subTarget());
                ClassLoader old = SecurityActions.getThreadContextClassLoader();
                try {
                    SecurityActions.setThreadContextClassLoader(module.getClassLoader());
                    raxmlDeployment = raDeployer.doDeploy();
                } finally {
View Full Code Here

Examples of org.jboss.msc.service.ServiceContainer.subTarget()

        additionalInit.setupController(controllerInitializer);

        //Initialize the controller
        ServiceContainer container = ServiceContainer.Factory.create("test" + counter.incrementAndGet());
        ServiceTarget target = container.subTarget();
        List<ModelNode> extraOps = controllerInitializer.initializeBootOperations();
        List<ModelNode> allOps = new ArrayList<ModelNode>();
        if (extraOps != null) {
            allOps.addAll(extraOps);
        }
View Full Code Here

Examples of org.jboss.msc.service.ServiceContainer.subTarget()

        ControllerInitializer controllerInitializer = additionalInit.createControllerInitializer();
        additionalInit.setupController(controllerInitializer);

        //Initialize the controller
        ServiceContainer container = ServiceContainer.Factory.create("test" + counter.incrementAndGet());
        ServiceTarget target = container.subTarget();
        ControlledProcessState processState = new ControlledProcessState(true);
        List<ModelNode> extraOps = controllerInitializer.initializeBootOperations();
        List<ModelNode> allOps = new ArrayList<ModelNode>();
        if (extraOps != null) {
            allOps.addAll(extraOps);
View Full Code Here

Examples of org.jboss.msc.service.ServiceContainer.subTarget()

        //TODO initialize the path manager service like we do for subsystems?

        //Create the controller
        ServiceContainer container = ServiceContainer.Factory.create("test" + counter.incrementAndGet());
        ServiceTarget target = container.subTarget();

        //Initialize the content repository
        File repositoryFile = new File("target/deployment-repository");
        if (contentRepositoryHashes != null) {
            deleteFile(repositoryFile);
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.