diff options
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/interfaces/IDelegateService.java')
-rw-r--r-- | target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/interfaces/IDelegateService.java | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/interfaces/IDelegateService.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/interfaces/IDelegateService.java new file mode 100644 index 000000000..55636a4d4 --- /dev/null +++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/interfaces/IDelegateService.java @@ -0,0 +1,30 @@ +/******************************************************************************* + * Copyright (c) 2013 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; + +/** + * Delegate service. + * <p> + * Allows to return specific delegate implementations for a given context. + * <p> + * A delegate extends the implementation of a service or method to be context specific. + */ +public interface IDelegateService extends IService { + + /** + * Returns the delegate instance for the requested delegate class and context. + * + * @param context The context. Must not be <code>null</code>. + * @param clazz The delegate class. Must not be <code>null</code>. + * + * @return The delegate instance or <code>null</code>. + */ + public <V extends Object> V getDelegate(Object context, Class<? extends V> clazz); +} |