コード例 #1
0
 @Override
 public void init() {
   luceneDataSource = life.add(new LuceneDataSource(config, indexStore, fileSystemAbstraction));
   // TODO Don't do this here, do proper life cycle management
   life.start();
   LuceneIndexImplementation indexImplementation = new LuceneIndexImplementation(luceneDataSource);
   indexProviders.registerIndexProvider(
       LuceneIndexImplementation.SERVICE_NAME, indexImplementation);
 }
コード例 #2
0
 @Override
 public void stop() throws Throwable {
   indexProviders.unregisterIndexProvider(IDENTIFIER);
 }
コード例 #3
0
 @Override
 public void start() throws Throwable {
   indexProviders.registerIndexProvider(IDENTIFIER, this);
 }
コード例 #4
0
 @Override
 public void shutdown() {
   indexProviders.unregisterIndexProvider(LuceneIndexImplementation.SERVICE_NAME);
   // TODO Don't do this here, do proper life cycle management
   life.shutdown();
 }