1 16 package org.springframework.webflow.action; 17 18 import java.io.Serializable ; 19 20 import org.springframework.binding.method.MethodSignature; 21 import org.springframework.util.Assert; 22 import org.springframework.webflow.execution.RequestContext; 23 24 30 class LocalBeanInvokingAction extends AbstractBeanInvokingAction implements Serializable { 31 32 35 private Object bean; 36 37 42 public LocalBeanInvokingAction(MethodSignature methodSignature, Object bean) { 43 super(methodSignature); 44 Assert.notNull(bean, "The bean to invoke by this action cannot be null"); 45 this.bean = bean; 46 } 47 48 51 public Object getBean() { 52 return bean; 53 } 54 55 protected Object getBean(RequestContext context) throws Exception { 56 return getBean(); 57 } 58 } | Popular Tags |