public class ICasaProxyFactory extends Object implements InvocationHandler
| Constructor and Description |
|---|
ICasaProxyFactory(DeviceDependency dependency)
Creates a DynamicProxyFactory.
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
delegateServiceInvokation(Method method,
Object[] args) |
Object |
getProxy(Class spec)
Creates a proxy object for the given specification.
|
protected Object |
getService() |
Object |
invoke(Object proxy,
Method method,
Object[] args)
Invocation Handler delegating invocation on the service object.
|
public ICasaProxyFactory(DeviceDependency dependency)
dependency - public Object getProxy(Class spec)
spec - the service specification (interface)public Object invoke(Object proxy, Method method, Object[] args) throws Exception
invoke in interface InvocationHandlerproxy - the proxy objectmethod - the methodargs - the argumentsException - if the invocation throws an exceptionInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])protected Object delegateServiceInvokation(Method method, Object[] args) throws Exception
Exceptionprotected Object getService()
Copyright © 2012-2013 ADELE Research Group. All Rights Reserved.