public abstract class ServiceProxy
extends Object
implements InvocationHandler
| Constructor and Description |
|---|
ServiceProxy() |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Service> |
getServiceClass()
Gets the service class.
|
abstract Object |
invoke(Object proxy,
Method m,
Object[] args) |
void |
setServiceClass(Class<? extends Service> service)
Sets the service class.
|
Service |
toService()
Creates and returns a java.lang.reflect.Proxy instance using given Service class.
|
public Class<? extends Service> getServiceClass()
public abstract Object invoke(Object proxy,
Method m,
Object[] args)
throws Throwable
invoke in interface InvocationHandlerThrowablepublic void setServiceClass(Class<? extends Service> service)
service - the new service classpublic Service toService() throws Exception
Exception - in case of any errorCopyright © 2010-2020 Toolsverse. All Rights Reserved.