summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Liebig2008-02-12 09:19:10 (EST)
committerStefan Liebig2008-02-12 09:19:10 (EST)
commit67ec62cec5b34e13a15a123fa95e0e714d1c2576 (patch)
tree6e805fb59e106b820b63b330b26efcf9aa87f5a2
parente5dad61ca4bbe16c3af6d52603626c4503b3a0de (diff)
downloadorg.eclipse.riena-67ec62cec5b34e13a15a123fa95e0e714d1c2576.zip
org.eclipse.riena-67ec62cec5b34e13a15a123fa95e0e714d1c2576.tar.gz
org.eclipse.riena-67ec62cec5b34e13a15a123fa95e0e714d1c2576.tar.bz2
uses new service injector
-rw-r--r--org.eclipse.riena.communication.core/src/org/eclipse/riena/internal/communication/core/factory/CallHooksProxy.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/org.eclipse.riena.communication.core/src/org/eclipse/riena/internal/communication/core/factory/CallHooksProxy.java b/org.eclipse.riena.communication.core/src/org/eclipse/riena/internal/communication/core/factory/CallHooksProxy.java
index e5d8f76..0d56615 100644
--- a/org.eclipse.riena.communication.core/src/org/eclipse/riena/internal/communication/core/factory/CallHooksProxy.java
+++ b/org.eclipse.riena.communication.core/src/org/eclipse/riena/internal/communication/core/factory/CallHooksProxy.java
@@ -22,20 +22,18 @@ import org.eclipse.riena.communication.core.hooks.CallContext;
import org.eclipse.riena.communication.core.hooks.ICallHook;
import org.eclipse.riena.communication.core.hooks.ICallMessageContext;
import org.eclipse.riena.communication.core.hooks.ICallMessageContextAccessor;
-import org.eclipse.riena.core.service.ServiceInjector;
+import org.eclipse.riena.core.service.ServiceId;
import org.eclipse.riena.internal.communication.core.Activator;
public class CallHooksProxy extends AbstractHooksProxy {
private HashSet<ICallHook> callHooks = new HashSet<ICallHook>();
- private ServiceInjector si;
private RemoteServiceDescription rsd;
private ICallMessageContextAccessor mca;
public CallHooksProxy(Object proxiedInstance) {
super(proxiedInstance);
- si = new ServiceInjector(Activator.getContext(), ICallHook.ID, this, "addCallHook", "removeCallHook");
- si.start();
+ new ServiceId(ICallHook.ID).injectInto(this).start(Activator.getContext());
}
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
@@ -69,11 +67,11 @@ public class CallHooksProxy extends AbstractHooksProxy {
}
}
- public void addCallHook(ICallHook serviceHook) {
+ public void bind(ICallHook serviceHook) {
callHooks.add(serviceHook);
}
- public void removeCallHook(ICallHook serviceHook) {
+ public void unbind(ICallHook serviceHook) {
callHooks.remove(serviceHook);
}