public class ServiceProxy extends Object implements InvocationHandler
Constructor and Description |
---|
ServiceProxy(Service service)
Constructs a new ServiceProxy wrapping given Service instance.
|
public ServiceProxy(Service service) throws ServiceException
service
- the wrapped Service instanceServiceException
- should be never thrownpublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
Throwable
InvocationHandler.invoke(Object, Method, Object[])
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.