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