org.openamf.invoker
Class SpringBeanInvoker

java.lang.Object
  extended byorg.openamf.invoker.ServiceInvoker
      extended byorg.openamf.invoker.SpringBeanInvoker

public class SpringBeanInvoker
extends ServiceInvoker

Version:
$Revision: 1.2 $, $Date: 2006/03/29 06:42:31 $
Author:
Andrew Barnes , Tom McGee

Field Summary
 
Fields inherited from class org.openamf.invoker.ServiceInvoker
httpServletRequest, persistentServiceObject, request, servletContext
 
Constructor Summary
SpringBeanInvoker(ServiceRequest request, javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.ServletContext servletContext)
           
 
Method Summary
 java.lang.String getPersistentServiceName()
           
 boolean getPersistService()
           
 java.lang.Object invokeService()
           
protected  java.lang.Object invokeServiceMethod(java.lang.Object service, java.lang.Class serviceClass, java.lang.String methodName, java.util.List parameters)
           
 boolean supports(ServiceRequest request)
           
 
Methods inherited from class org.openamf.invoker.ServiceInvoker
getHttpServletRequest, getPersistentServiceObject, getRequest, getServletContext, load, prepare, setHttpServletRequest, setPersistentServiceObject, setRequest, setServletContext, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpringBeanInvoker

public SpringBeanInvoker(ServiceRequest request,
                         javax.servlet.http.HttpServletRequest servletRequest,
                         javax.servlet.ServletContext servletContext)
Method Detail

invokeService

public java.lang.Object invokeService()
                               throws ServiceInvocationException
Specified by:
invokeService in class ServiceInvoker
Throws:
ServiceInvocationException

invokeServiceMethod

protected java.lang.Object invokeServiceMethod(java.lang.Object service,
                                               java.lang.Class serviceClass,
                                               java.lang.String methodName,
                                               java.util.List parameters)
                                        throws java.lang.SecurityException,
                                               java.lang.NoSuchMethodException,
                                               java.lang.IllegalAccessException,
                                               java.lang.IllegalArgumentException,
                                               java.lang.reflect.InvocationTargetException
Throws:
java.lang.SecurityException
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.IllegalArgumentException
java.lang.reflect.InvocationTargetException

getPersistService

public boolean getPersistService()
Overrides:
getPersistService in class ServiceInvoker

getPersistentServiceName

public java.lang.String getPersistentServiceName()
Overrides:
getPersistentServiceName in class ServiceInvoker

supports

public boolean supports(ServiceRequest request)
Specified by:
supports in class ServiceInvoker