org.apache.jetspeed.ajax
Class AJAXServiceImpl

java.lang.Object
  extended by org.apache.jetspeed.ajax.AJAXServiceImpl
All Implemented Interfaces:
org.apache.jetspeed.ajax.AJAXService, org.springframework.beans.factory.BeanFactoryAware

public class AJAXServiceImpl
extends Object
implements org.apache.jetspeed.ajax.AJAXService, org.springframework.beans.factory.BeanFactoryAware

Performs invocation of the actual AJAX request and returns a result object to converted into XML.

Author:
Scott T. Weaver

Field Summary
private  org.springframework.beans.factory.BeanFactory beanFactory
           
private  org.apache.velocity.app.VelocityEngine engine
           
private  Map serviceToBeans
           
private  Map serviceToTemplates
           
 
Constructor Summary
AJAXServiceImpl(Map serviceToBeans)
           
AJAXServiceImpl(Map serviceToBeans, org.apache.velocity.app.VelocityEngine engine, Map serviceToTemplates)
           
 
Method Summary
protected  Class[] getTypes(List objects)
           
protected  Object[] getValues(List objects)
           
 org.apache.jetspeed.ajax.AJAXResponse processRequest(org.apache.jetspeed.ajax.AJAXRequest request)
           
 void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serviceToBeans

private Map serviceToBeans

serviceToTemplates

private Map serviceToTemplates

beanFactory

private org.springframework.beans.factory.BeanFactory beanFactory

engine

private org.apache.velocity.app.VelocityEngine engine
Constructor Detail

AJAXServiceImpl

public AJAXServiceImpl(Map serviceToBeans)

AJAXServiceImpl

public AJAXServiceImpl(Map serviceToBeans,
                       org.apache.velocity.app.VelocityEngine engine,
                       Map serviceToTemplates)
Method Detail

processRequest

public org.apache.jetspeed.ajax.AJAXResponse processRequest(org.apache.jetspeed.ajax.AJAXRequest request)
                                                     throws org.apache.jetspeed.ajax.AJAXException
Specified by:
processRequest in interface org.apache.jetspeed.ajax.AJAXService
Throws:
org.apache.jetspeed.ajax.AJAXException

setBeanFactory

public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
                    throws org.springframework.beans.BeansException
Specified by:
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
Throws:
org.springframework.beans.BeansException

getTypes

protected Class[] getTypes(List objects)

getValues

protected Object[] getValues(List objects)


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.