View Javadoc

1   /*
2    * Copyright 2004-2008 the Seasar Foundation and the Others.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13   * either express or implied. See the License for the specific language
14   * governing permissions and limitations under the License.
15   */
16  package org.seasar.cubby.controller;
17  
18  import java.lang.reflect.Method;
19  
20  import org.seasar.cubby.action.Action;
21  import org.seasar.cubby.action.ActionResult;
22  import org.seasar.cubby.action.Validation;
23  import org.seasar.cubby.dxo.FormDxo;
24  import org.seasar.framework.container.ComponentDef;
25  
26  /**
27   * アクションメソッドの実行時のコンテキスト情報を保持するインターフェイス。
28   * 
29   * @author agata
30   * @author baba
31   * @since 1.0
32   */
33  public interface ActionContext {
34  
35  	void initialize(ActionDef actionDef);
36  
37  	boolean isInitialized();
38  
39  	ActionResult invoke() throws Exception;
40  
41  	ComponentDef getComponentDef();
42  
43  	Action getAction();
44  
45  	Method getMethod();
46  
47  	Validation getValidation();
48  
49  	Object getFormBean();
50  
51  	FormDxo getFormDxo();
52  
53  }