org.eclipse.smila.search.servlet.activator
Class Activator
java.lang.Object
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BUNDLE_NAME
public static final java.lang.String BUNDLE_NAME
- bundle name.
- See Also:
- Constant Field Values
Activator
public Activator()
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