Search in sources :

Example 1 with CleanupServiceImpl

use of eu.esdihumboldt.hale.common.core.service.cleanup.impl.CleanupServiceImpl in project hale by halestudio.

the class CoreBundle method start.

/**
 * @see BundleActivator#start(BundleContext)
 */
@Override
public void start(BundleContext context) throws Exception {
    CoreBundle.activated = true;
    this.context = context;
    // TODO register clean up service in a way that it is also available
    // in a non-OSGi context?
    cleanupService = new CleanupServiceImpl();
    cleanupServiceRef = context.registerService(CleanupService.class, cleanupService, new Hashtable<String, Object>());
    CoreBundle.instance = this;
}
Also used : CleanupServiceImpl(eu.esdihumboldt.hale.common.core.service.cleanup.impl.CleanupServiceImpl) CleanupService(eu.esdihumboldt.hale.common.core.service.cleanup.CleanupService) Hashtable(java.util.Hashtable)

Aggregations

CleanupService (eu.esdihumboldt.hale.common.core.service.cleanup.CleanupService)1 CleanupServiceImpl (eu.esdihumboldt.hale.common.core.service.cleanup.impl.CleanupServiceImpl)1 Hashtable (java.util.Hashtable)1