站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

GWTToSeamAdapter (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.jboss.seam.remoting.gwt
Class GWTToSeamAdapter

java.lang.Object
  extended by org.jboss.seam.remoting.gwt.GWTToSeamAdapter

public class GWTToSeamAdapter
extends Object

This class adapts GWT RPC mechanism to Seam actions.

Author:
Michael Neale

Constructor Summary
GWTToSeamAdapter()
           
 
Method Summary
 org.jboss.seam.remoting.gwt.GWTToSeamAdapter.ReturnedObject callWebRemoteMethod(String serviceIntfName, String methodName, Class[] paramTypes, Object[] args)
          Call the service.
protected  Object getServiceComponent(String serviceIntfName)
          Return the service component that has been bound to the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GWTToSeamAdapter

public GWTToSeamAdapter()
Method Detail

callWebRemoteMethod

public org.jboss.seam.remoting.gwt.GWTToSeamAdapter.ReturnedObject callWebRemoteMethod(String serviceIntfName,
                                                                                       String methodName,
                                                                                       Class[] paramTypes,
                                                                                       Object[] args)
                                                                                throws InvocationTargetException,
                                                                                       IllegalAccessException,
                                                                                       SecurityException
Call the service.

Parameters:
serviceIntfName - The interface name - this will be the fully qualified name of the remote service interface as understood by GWT. This correlates to a component name in seam.
methodName - The method name of the service being invoked.
paramTypes - The types of parameters - needed for method lookup for polymorphism.
args - The values to be passed to the service method.
Returns:
A populated ReturnedObject - the returned object payload may be null, but the type will not be.
Throws:
InvocationTargetException
IllegalAccessException
SecurityException

getServiceComponent

protected Object getServiceComponent(String serviceIntfName)
Return the service component that has been bound to the given name.



Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.