Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2012-11-02 13:25:39 +0000
committerUwe Stieber2012-11-02 13:25:39 +0000
commit3c5006fef0cb28924c354bf59db6ea82d8be5599 (patch)
tree415f959feadfb9d74745dbda2658a56c21e7395d /target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org
parent3ac9dde7efadba008fdb684d06542ede3dafbb23 (diff)
downloadorg.eclipse.tcf-3c5006fef0cb28924c354bf59db6ea82d8be5599.tar.gz
org.eclipse.tcf-3c5006fef0cb28924c354bf59db6ea82d8be5599.tar.xz
org.eclipse.tcf-3c5006fef0cb28924c354bf59db6ea82d8be5599.zip
Target Explorer: Added adapter service interface
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/interfaces/IAdapterService.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/interfaces/IAdapterService.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/interfaces/IAdapterService.java
new file mode 100644
index 000000000..5377b30b1
--- /dev/null
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/interfaces/IAdapterService.java
@@ -0,0 +1,28 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Wind River Systems, Inc. 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:
+ * Wind River Systems - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.tcf.te.runtime.services.interfaces;
+
+/**
+ * Adapter service.
+ * <p>
+ * Allows to return specific adapter implementations for a given context.
+ */
+public interface IAdapterService extends IService {
+
+ /**
+ * Returns an adapter for the requested adapter class and context.
+ *
+ * @param context The context. Must not be <code>null</code>.
+ * @param adapter The adapter class. Must not be <code>null</code>.
+ *
+ * @return The adapter or <code>null</code>.
+ */
+ public <V extends Object> V getAdapter(Object context, Class<? extends V> adapter);
+}

Back to the top