1 29 30 package com.caucho.soa.client; 31 32 import com.caucho.naming.Jndi; 33 import com.caucho.util.L10N; 34 35 import java.net.MalformedURLException ; 36 37 public class VMEncodingProxyFactory implements EncodingProxyFactory { 38 private static final L10N L = new L10N(VMEncodingProxyFactory.class); 39 40 public Object getProxy(Class serviceInterface, String url) 41 throws MalformedURLException 42 { 43 return serviceInterface.cast(Jndi.lookup(url)); 44 } 45 46 public Object getProxy(Class serviceInterface, String url, 47 String jaxbPackages) 48 { 49 throw new UnsupportedOperationException (L.l("VM proxy does not use JAXB")); 50 } 51 52 public Object getProxy(Class serviceInterface, String url, 53 Class [] jaxbClasses) 54 { 55 throw new UnsupportedOperationException (L.l("VM proxy does not use JAXB")); 56 } 57 } 58 | Popular Tags |