SMILA 1.0 API documentation

org.eclipse.smila.search.servlet.activator
Class Activator

java.lang.Object
  extended by org.eclipse.smila.search.servlet.activator.Activator

public class Activator
extends java.lang.Object

Activator for search servlet bundle. Purpose is to create a ServiceTracker for SearchService services.

Author:
jschumacher

Field Summary
static java.lang.String BUNDLE_NAME
          bundle name.
 
Constructor Summary
Activator()
           
 
Method Summary
static BundleContext getBundleContxt()
           
static SearchService getSearchService()
           
static java.util.Collection<java.lang.String> getSolrCoreNames()
           
 void start(BundleContext context)
          
 void stop(BundleContext context)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUNDLE_NAME

public static final java.lang.String BUNDLE_NAME
bundle name.

See Also:
Constant Field Values
Constructor Detail

Activator

public Activator()
Method Detail

start

public void start(BundleContext context)
           throws java.lang.Exception

Throws:
java.lang.Exception
See Also:
org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)

stop

public void stop(BundleContext context)
          throws java.lang.Exception

Throws:
java.lang.Exception
See Also:
org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)

getSearchService

public static SearchService getSearchService()
Returns:
a currently available search service, or null if none is registered.

getSolrCoreNames

public static java.util.Collection<java.lang.String> getSolrCoreNames()
Returns:

getBundleContxt

public static BundleContext getBundleContxt()
Returns:
OSGI bundle context

SMILA 1.0 API documentation