Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2012-05-04 19:28:07 +0000
committerThomas Watson2012-05-04 19:28:07 +0000
commitfe983ffd3b24be8414888b51a79027a0a1491f36 (patch)
treec853f16ddfe37e3019fd17e6177813d10385e7bb /bundles/org.eclipse.osgi.container/impl/org/eclipse/osgi/container/ModuleContainerAdaptor.java
parent1cfbf5df506fe15bedc6c8458839fb289bb5893b (diff)
downloadrt.equinox.framework-fe983ffd3b24be8414888b51a79027a0a1491f36.tar.gz
rt.equinox.framework-fe983ffd3b24be8414888b51a79027a0a1491f36.tar.xz
rt.equinox.framework-fe983ffd3b24be8414888b51a79027a0a1491f36.zip
Add SystemModule and configuration
Diffstat (limited to 'bundles/org.eclipse.osgi.container/impl/org/eclipse/osgi/container/ModuleContainerAdaptor.java')
-rw-r--r--bundles/org.eclipse.osgi.container/impl/org/eclipse/osgi/container/ModuleContainerAdaptor.java14
1 files changed, 12 insertions, 2 deletions
diff --git a/bundles/org.eclipse.osgi.container/impl/org/eclipse/osgi/container/ModuleContainerAdaptor.java b/bundles/org.eclipse.osgi.container/impl/org/eclipse/osgi/container/ModuleContainerAdaptor.java
index fbf3bda36..e42a95807 100644
--- a/bundles/org.eclipse.osgi.container/impl/org/eclipse/osgi/container/ModuleContainerAdaptor.java
+++ b/bundles/org.eclipse.osgi.container/impl/org/eclipse/osgi/container/ModuleContainerAdaptor.java
@@ -10,6 +10,8 @@
*******************************************************************************/
package org.eclipse.osgi.container;
+import java.util.Collections;
+import java.util.Map;
import org.osgi.framework.FrameworkListener;
import org.osgi.framework.hooks.resolver.ResolverHookFactory;
import org.osgi.service.resolver.Resolver;
@@ -19,7 +21,7 @@ import org.osgi.service.resolver.Resolver;
*/
public abstract class ModuleContainerAdaptor {
public enum ContainerEvent {
- REFRESH, START_LEVEL, ERROR, WARNING, INFO
+ REFRESH, START_LEVEL, STARTED, STOPPED, STOPPED_UPDATE, STOPPED_REFRESH, ERROR, WARNING, INFO
}
/**
@@ -41,11 +43,19 @@ public abstract class ModuleContainerAdaptor {
public abstract ResolverHookFactory getResolverHookFactory();
/**
- *
+ * Publishes the specified container event.
* @param type the type of event
* @param module the module associated with the event
* @param error the error associated with the event, may be {@code null}
* @param listeners additional listeners to publish the event to synchronously
*/
public abstract void publishContainerEvent(ContainerEvent type, Module module, Throwable error, FrameworkListener... listeners);
+
+ /**
+ * Returns an unmodifiable map of the configuration for the container
+ * @return an unmodifiable map of the configuration for the container
+ */
+ public Map<String, Object> getConfiguration() {
+ return Collections.emptyMap();
+ }
}

Back to the top