001    package de.deepamehta.core.osgi;
002    
003    import de.deepamehta.core.service.DeepaMehtaService;
004    import de.deepamehta.core.service.PluginService;
005    
006    import org.osgi.framework.BundleContext;
007    
008    
009    
010    public interface PluginContext {
011    
012        // --- Hooks to be overridden by the plugin developer ---
013    
014        void init();
015    
016        void shutdown();
017    
018        void serviceArrived(PluginService service);
019    
020        void serviceGone(PluginService service);
021    
022        // --- Internal ---
023    
024        String getPluginName();
025    
026        BundleContext getBundleContext();
027    
028        void setCoreService(DeepaMehtaService dms);
029    }