Package org.modeshape.jboss.service

Examples of org.modeshape.jboss.service.IndexProviderService


                props.put(key, node.asString());
            }
        }
        ensureClassLoadingPropertyIsSet(props);

        IndexProviderService providerService = new IndexProviderService(repositoryName, props);

        ServiceBuilder<JcrRepository> providerBuilder = target.addService(ModeShapeServiceNames.indexProviderServiceName(repositoryName,
                                                                                                                         providerName),
                                                                          providerService);
        providerBuilder.addDependency(ModeShapeServiceNames.ENGINE,
                                      ModeShapeEngine.class,
                                      providerService.getModeShapeEngineInjector());
        providerBuilder.addDependency(ModeShapeServiceNames.repositoryServiceName(repositoryName),
                                      JcrRepository.class,
                                      providerService.getJcrRepositoryInjector());
        providerBuilder.setInitialMode(ServiceController.Mode.ACTIVE);
        ServiceController<JcrRepository> controller = providerBuilder.install();
        newControllers.add(controller);
    }
View Full Code Here

TOP

Related Classes of org.modeshape.jboss.service.IndexProviderService

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.