org.ontoware.rdf2go.osgi
Class RDF2GoActivator

java.lang.Object
  extended by org.ontoware.rdf2go.osgi.RDF2GoActivator
All Implemented Interfaces:
java.util.EventListener, org.osgi.framework.BundleActivator, org.osgi.framework.ServiceListener

public class RDF2GoActivator
extends java.lang.Object
implements org.osgi.framework.BundleActivator, org.osgi.framework.ServiceListener

Activate the RDF2Go framework. Listens to registered OSGI services and searches for registered 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)

Author:
sauermann

Field Summary
static java.lang.String DEFAULTMODELFACTORY_CFG
          set this variable in the OSGI config to define the default driver for RDF2Go.
 
Constructor Summary
RDF2GoActivator()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULTMODELFACTORY_CFG

public static final java.lang.String DEFAULTMODELFACTORY_CFG
set this variable in the OSGI config to define the default driver for RDF2Go.

See Also:
Constant Field Values
Constructor Detail

RDF2GoActivator

public RDF2GoActivator()
Method Detail

start

public void start(org.osgi.framework.BundleContext context)
           throws java.lang.Exception
Specified by:
start in interface org.osgi.framework.BundleActivator
Throws:
java.lang.Exception
See Also:
BundleActivator.start(org.osgi.framework.BundleContext)

stop

public void stop(org.osgi.framework.BundleContext context)
          throws java.lang.Exception
Specified by:
stop in interface org.osgi.framework.BundleActivator
Throws:
java.lang.Exception
See Also:
BundleActivator.stop(org.osgi.framework.BundleContext)

serviceChanged

public void serviceChanged(org.osgi.framework.ServiceEvent event)
Listen to changes in the ModelFactories.

Specified by:
serviceChanged in interface org.osgi.framework.ServiceListener
See Also:
ServiceListener.serviceChanged(org.osgi.framework.ServiceEvent)


Copyright © 2005-2008 FZI - Forschungszentrum Informatik | Karlsruhe | Germany. All Rights Reserved.