Class GenericProxyFactory

java.lang.Object
org.gcube.common.calls.jaxws.proxies.GenericProxyFactory

public class GenericProxyFactory extends Object
Factory for creating generic proxies for service interfaces.
Author:
Fabio Simeoni
  • Field Details

    • log

      public static org.slf4j.Logger log
      Logger for this class.
  • Constructor Details

    • GenericProxyFactory

      public GenericProxyFactory()
  • Method Details

    • getProxy

      public static <T, I extends T> T getProxy(Class<T> intf, String endpointAddress, I obj)
      Creates a proxy for the given interface and implementation.
      Type Parameters:
      T - the interface type
      I - the implementation type
      Parameters:
      intf - the service interface
      endpointAddress - the service endpoint address
      obj - the service implementation
      Returns:
      a proxy instance