public class RDF2GoActivator extends Object implements org.osgi.framework.BundleActivator, org.osgi.framework.ServiceListener
ModelFactory
instances. The found factories
are compared to a configuration value, if the configured factory is found, it
is set as default. This is the configuration value to set:
org.ontoware.rdf2go.defaultmodelfactory=(classname of modelfactory)
This class has been contributed by Deutsches Forschungszentrum fuer
Kuenstliche Intelligenz DFKI GmbH.
TODO sauermann why cannot just the implementation bundle register itself? It
shouldn't be the APIs job to register implementations.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULTMODELFACTORY_CFG
set this variable in the OSGI config to define the default driver for
RDF2Go.
|
static String |
MODEL_FACTORY_FILTER
The filter used to search for ModelFactories
|
Constructor and Description |
---|
RDF2GoActivator() |
Modifier and Type | Method and Description |
---|---|
void |
serviceChanged(org.osgi.framework.ServiceEvent event)
Listen to changes in the ModelFactories.
|
void |
start(org.osgi.framework.BundleContext context) |
void |
stop(org.osgi.framework.BundleContext context) |
public static final String DEFAULTMODELFACTORY_CFG
public static final String MODEL_FACTORY_FILTER
public void start(org.osgi.framework.BundleContext context) throws Exception
start
in interface org.osgi.framework.BundleActivator
Exception
BundleActivator.start(org.osgi.framework.BundleContext)
public void stop(org.osgi.framework.BundleContext context) throws Exception
stop
in interface org.osgi.framework.BundleActivator
Exception
TODO leo/antoni document why context is not needed/used for stopping
the bundle
public void serviceChanged(org.osgi.framework.ServiceEvent event)
serviceChanged
in interface org.osgi.framework.ServiceListener
ServiceListener.serviceChanged(org.osgi.framework.ServiceEvent)
Copyright © 2005–2017 IT-Consulting Dr. Max V?lkel | Project started at FZI Forschungszentrum Informatik, www.fzi.de. All rights reserved.