Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian W. Damus2013-01-16 09:22:04 -0500
committerChristian W. Damus2013-01-16 09:22:04 -0500
commitd2f09acd1d0d17ca44fe98b37ed48ee23ef61941 (patch)
tree87f9c3912a821015c39c58654538d3e5f8412a9a
parentaf8bc5c955196e3a1993009c29be5482486fae72 (diff)
downloadcdo-d2f09acd1d0d17ca44fe98b37ed48ee23ef61941.tar.gz
cdo-d2f09acd1d0d17ca44fe98b37ed48ee23ef61941.tar.xz
cdo-d2f09acd1d0d17ca44fe98b37ed48ee23ef61941.zip
[397780] Support private session containers not managed by CDO UIdrops/I20130118-0411
https://bugs.eclipse.org/bugs/show_bug.cgi?id=397780
-rw-r--r--plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/internal/util/container/PluginContainer.java3
-rw-r--r--plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/container/ContainerUtil.java13
2 files changed, 15 insertions, 1 deletions
diff --git a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/internal/util/container/PluginContainer.java b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/internal/util/container/PluginContainer.java
index 07ec240950..e4fc8603a7 100644
--- a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/internal/util/container/PluginContainer.java
+++ b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/internal/util/container/PluginContainer.java
@@ -7,6 +7,7 @@
*
* Contributors:
* Eike Stepper - initial API and implementation
+ * Christian W. Damus (CEA) - private plug-in container instances
*/
package org.eclipse.net4j.internal.util.container;
@@ -29,7 +30,7 @@ public class PluginContainer extends ManagedContainer implements IPluginContaine
{
private static PluginContainer instance;
- private PluginContainer()
+ public PluginContainer()
{
}
diff --git a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/container/ContainerUtil.java b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/container/ContainerUtil.java
index 40416d0338..b3dd0aec17 100644
--- a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/container/ContainerUtil.java
+++ b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/container/ContainerUtil.java
@@ -7,9 +7,11 @@
*
* Contributors:
* Eike Stepper - initial API and implementation
+ * Christian W. Damus (CEA) - private plug-in container instances
*/
package org.eclipse.net4j.util.container;
+import org.eclipse.net4j.internal.util.container.PluginContainer;
import org.eclipse.net4j.util.concurrent.ExecutorServiceFactory;
import org.eclipse.net4j.util.concurrent.TimerLifecycle;
import org.eclipse.net4j.util.event.EventUtil;
@@ -107,4 +109,15 @@ public final class ContainerUtil
return NO_ELEMENTS;
}
+
+ /**
+ * Creates a new managed container that discovers factory and element processor
+ * registrations in plug-in extensions.
+ *
+ * @since 3.3
+ */
+ public static IManagedContainer createPluginContainer()
+ {
+ return new PluginContainer();
+ }
}

Back to the top