1 7 package org.jboss.webservice.server; 8 9 11 import org.jboss.axis.Handler; 12 import org.jboss.axis.MessageContext; 13 import org.jboss.axis.providers.java.RPCProvider; 14 15 import javax.xml.rpc.holders.IntHolder ; 16 import java.lang.reflect.Method ; 17 18 25 public class InvokerProviderSimple extends RPCProvider 26 { 27 28 static final long serialVersionUID = 6368971333868010325L; 29 private Object targetService; 30 31 33 public InvokerProviderSimple(Object targetService) 34 { 35 this.targetService = targetService; 36 } 37 38 46 protected java.lang.Object invokeMethod(MessageContext msgContext, Method method, java.lang.Object obj, java.lang.Object [] argValues) throws Exception 47 { 48 return method.invoke(obj, argValues); 49 } 50 51 55 public java.lang.Object getServiceObject(MessageContext msgContext, Handler service, String clsName, IntHolder scopeHolder) throws Exception 56 { 57 return targetService; 58 } 59 60 63 protected String getServiceClassName(Handler service) 64 { 65 return targetService.getClass().getName(); 66 } 67 } 68 | Popular Tags |