Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2009-03-10 21:33:47 +0000
committerslewis2009-03-10 21:33:47 +0000
commit9669d4751d4963e9e5b51f0a0bba026371c5ac03 (patch)
tree9a1f040060cfe0561d0234a6138b3a5d442cabf6 /framework/bundles/org.eclipse.ecf.remoteservice
parentf39a656520ab2efc96a8c4354115b20c4b758ef1 (diff)
downloadorg.eclipse.ecf-9669d4751d4963e9e5b51f0a0bba026371c5ac03.tar.gz
org.eclipse.ecf-9669d4751d4963e9e5b51f0a0bba026371c5ac03.tar.xz
org.eclipse.ecf-9669d4751d4963e9e5b51f0a0bba026371c5ac03.zip
Added convenience class and interface: RemoteServiceContainer/IRemoteServiceContainer.
Diffstat (limited to 'framework/bundles/org.eclipse.ecf.remoteservice')
-rw-r--r--framework/bundles/org.eclipse.ecf.remoteservice/src/org/eclipse/ecf/remoteservice/IRemoteServiceContainer.java35
-rw-r--r--framework/bundles/org.eclipse.ecf.remoteservice/src/org/eclipse/ecf/remoteservice/RemoteServiceContainer.java35
2 files changed, 70 insertions, 0 deletions
diff --git a/framework/bundles/org.eclipse.ecf.remoteservice/src/org/eclipse/ecf/remoteservice/IRemoteServiceContainer.java b/framework/bundles/org.eclipse.ecf.remoteservice/src/org/eclipse/ecf/remoteservice/IRemoteServiceContainer.java
new file mode 100644
index 000000000..1052e8354
--- /dev/null
+++ b/framework/bundles/org.eclipse.ecf.remoteservice/src/org/eclipse/ecf/remoteservice/IRemoteServiceContainer.java
@@ -0,0 +1,35 @@
+/*******************************************************************************
+* Copyright (c) 2009 EclipseSource and others. All rights reserved. This
+* program and the accompanying materials are made available under the terms of
+* the Eclipse Public License v1.0 which accompanies this distribution, and is
+* available at http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+* EclipseSource - initial API and implementation
+******************************************************************************/
+package org.eclipse.ecf.remoteservice;
+
+import org.eclipse.ecf.core.IContainer;
+
+/**
+ * @since 3.0
+ */
+public interface IRemoteServiceContainer {
+
+ /**
+ * Get the container instance for this remote service container. Will
+ * not return <code>null</code>.
+ * @return IContainer for this remote service container. Will not return <code>null</code>.
+ */
+ public IContainer getContainer();
+
+ /**
+ * Get the container adapter for this remote service container.
+ * Will not return <code>null</code>
+ *
+ * @return IRemoteServiceContainerAdapter that is the adapter for the container
+ * returned from {@link #getContainer()}.
+ */
+ public IRemoteServiceContainerAdapter getContainerAdapter();
+
+}
diff --git a/framework/bundles/org.eclipse.ecf.remoteservice/src/org/eclipse/ecf/remoteservice/RemoteServiceContainer.java b/framework/bundles/org.eclipse.ecf.remoteservice/src/org/eclipse/ecf/remoteservice/RemoteServiceContainer.java
new file mode 100644
index 000000000..d84f6a005
--- /dev/null
+++ b/framework/bundles/org.eclipse.ecf.remoteservice/src/org/eclipse/ecf/remoteservice/RemoteServiceContainer.java
@@ -0,0 +1,35 @@
+/*******************************************************************************
+* Copyright (c) 2009 EclipseSource and others. All rights reserved. This
+* program and the accompanying materials are made available under the terms of
+* the Eclipse Public License v1.0 which accompanies this distribution, and is
+* available at http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+* EclipseSource - initial API and implementation
+******************************************************************************/
+package org.eclipse.ecf.remoteservice;
+
+import org.eclipse.ecf.core.IContainer;
+
+/**
+ * @since 3.0
+ */
+public class RemoteServiceContainer implements IRemoteServiceContainer {
+
+ private final IContainer container;
+ private final IRemoteServiceContainerAdapter containerAdapter;
+
+ public RemoteServiceContainer(IContainer container, IRemoteServiceContainerAdapter containerAdapter) {
+ this.container = container;
+ this.containerAdapter = containerAdapter;
+ }
+
+ public IContainer getContainer() {
+ return container;
+ }
+
+ public IRemoteServiceContainerAdapter getContainerAdapter() {
+ return containerAdapter;
+ }
+
+}

Back to the top