Package org.apache.tika.config
Class TikaActivator
java.lang.Object
org.apache.tika.config.TikaActivator
- All Implemented Interfaces:
org.osgi.framework.BundleActivator
,org.osgi.util.tracker.ServiceTrackerCustomizer
public class TikaActivator
extends Object
implements org.osgi.framework.BundleActivator, org.osgi.util.tracker.ServiceTrackerCustomizer
Bundle activator that adjust the class loading mechanism of the
ServiceLoader
class to work correctly in an OSGi environment.
Note that you should not access this class directly. Instead the OSGi environment (if present) will automatically invoke the methods of this class based on the Bundle-Activator setting in the bundle manifest.
- Since:
- Apache Tika 0.9
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddingService
(org.osgi.framework.ServiceReference reference) void
modifiedService
(org.osgi.framework.ServiceReference reference, Object service) void
removedService
(org.osgi.framework.ServiceReference reference, Object service) void
start
(org.osgi.framework.BundleContext context) void
stop
(org.osgi.framework.BundleContext context)
-
Constructor Details
-
TikaActivator
public TikaActivator()
-
-
Method Details
-
start
- Specified by:
start
in interfaceorg.osgi.framework.BundleActivator
- Throws:
Exception
-
stop
- Specified by:
stop
in interfaceorg.osgi.framework.BundleActivator
- Throws:
Exception
-
addingService
- Specified by:
addingService
in interfaceorg.osgi.util.tracker.ServiceTrackerCustomizer
-
modifiedService
- Specified by:
modifiedService
in interfaceorg.osgi.util.tracker.ServiceTrackerCustomizer
-
removedService
- Specified by:
removedService
in interfaceorg.osgi.util.tracker.ServiceTrackerCustomizer
-