net.sf.doolin.gui.action.support
Class ServiceActionDelegate<E>

java.lang.Object
  extended by net.sf.doolin.gui.action.support.ServiceActionDelegate<E>
Type Parameters:
E - Type of the parameter
All Implemented Interfaces:
ActionDelegate<E>

public class ServiceActionDelegate<E>
extends Object
implements ActionDelegate<E>

Delegates the call to a service.

Author:
Damien Coraboeuf

Constructor Summary
ServiceActionDelegate()
           
 
Method Summary
 void call(ActionContext actionContext, E parameter)
          Calls the delegate
 boolean isUseActionContext()
           
 void setMethodName(String methodName)
          Sets the target method to call
 void setTarget(Object target)
          Sets the target service to call
 void setUseActionContext(boolean useActionContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceActionDelegate

public ServiceActionDelegate()
Method Detail

call

public void call(ActionContext actionContext,
                 E parameter)
Description copied from interface: ActionDelegate
Calls the delegate

Specified by:
call in interface ActionDelegate<E>
Parameters:
actionContext - Action context
parameter - Parameter

isUseActionContext

public boolean isUseActionContext()

setMethodName

public void setMethodName(String methodName)
Sets the target method to call

Parameters:
methodName - Method name

setTarget

public void setTarget(Object target)
Sets the target service to call

Parameters:
target - Object to call

setUseActionContext

public void setUseActionContext(boolean useActionContext)


Copyright © 2011. All Rights Reserved.