org.jboss.webservice.client
Class ServiceProxy

java.lang.Object
  extended byorg.jboss.webservice.client.ServiceProxy
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

public class ServiceProxy
extends java.lang.Object
implements java.lang.reflect.InvocationHandler

This is the proxy that implements the service interface .

Additionally it handles some ws4ee functionality that is not part of jaxrpc behaviour.

Since:
15-May-2004

Constructor Summary
ServiceProxy(ServiceImpl (src)  service, java.lang.Class siClass)
          Construct a client side service proxy.
 
Method Summary
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
          Processes a method invocation on a proxy instance and returns the result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceProxy

public ServiceProxy(ServiceImpl (src)  service,
                    java.lang.Class siClass)
Construct a client side service proxy.

This proxy implements the (generated) service interface.

Parameters:
service - The underlying Service (src)
siClass - The service interface, a subclass of Service (src)
Method Detail

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Processes a method invocation on a proxy instance and returns the result.

Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable