Package org.jboss.msc.service

Examples of org.jboss.msc.service.BatchBuilder.addDependency()


            // Create a sub-batch for this deployment
            final BatchBuilder deploymentSubBatch = batchBuilder.subBatchBuilder();

            // Setup a batch level dependency on deployment service
            deploymentSubBatch.addDependency(deploymentServiceName);

            // Add a deployment failure listener to the batch
            deploymentSubBatch.addListener(new DeploymentFailureListener(deploymentServiceName));

            // Create the deployment unit context
View Full Code Here


            context.putAttachment(DeploymentStructure.ATTACHMENT_KEY, structure);

            final BatchBuilder builder = context.getBatchBuilder();
            final ServiceName sName = ServiceName.JBOSS.append("deployment", context.getName(), "structure");
            builder.addService(sName, new DeploymentStructureService(structure));
            builder.addDependency(sName);

        } catch(IOException e) {
            throw new DeploymentUnitProcessingException(e);
        }
        // Add the war metadata
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.