Package org.modeshape.jboss.service

Examples of org.modeshape.jboss.service.IndexDefinitionService


            } else {
                props.put(key, node.asString());
            }
        }

        IndexDefinitionService indexDefnService = new IndexDefinitionService(repositoryName, props);

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

TOP

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

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.