Examples of DependencyConfigurator


Examples of org.jboss.as.ee.component.DependencyConfigurator

        ServiceBuilder<WeldManagedReferenceFactory> builder = target.addService(serviceName, factory)
                .addDependency(weldServiceName, WeldContainer.class, factory.getWeldContainer());

        configuration.setInstanceFactory(factory);
        configuration.getStartDependencies().add(new DependencyConfigurator() {
            @Override
            public void configureDependency(final ServiceBuilder<?> serviceBuilder) throws DeploymentUnitProcessingException {
                serviceBuilder.addDependency(serviceName);
            }
        });
View Full Code Here

Examples of org.jboss.as.ee.component.DependencyConfigurator

        target.addService(serviceName, factory)
                .addDependency(weldServiceName, WeldContainer.class, factory.getWeldContainer())
                .install();

        configuration.setInstanceFactory(factory);
        configuration.getStartDependencies().add(new DependencyConfigurator() {
            @Override
            public void configureDependency(final ServiceBuilder<?> serviceBuilder) throws DeploymentUnitProcessingException {
                serviceBuilder.addDependency(serviceName);
            }
        });
View Full Code Here

Examples of org.jboss.as.ee.component.DependencyConfigurator

        }
        logger.info(singletonComponentDescription.getEJBName() + " bean has @DependsOn");
        componentDescription.getConfigurators().add(new ComponentConfigurator() {
            @Override
            public void configure(final DeploymentPhaseContext context, final ComponentDescription description, final ComponentConfiguration configuration) throws DeploymentUnitProcessingException {
                configuration.getStartDependencies().add(new DependencyConfigurator() {
                    @Override
                    public void configureDependency(final ServiceBuilder<?> serviceBuilder) throws DeploymentUnitProcessingException {
                        for(ServiceName dep : singletonComponentDescription.getDependsOn()) {
                            serviceBuilder.addDependency(dep);
                        }
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.