org.seasar.cubby.internal.util
クラス MetaUtils

java.lang.Object
  上位を拡張 org.seasar.cubby.internal.util.MetaUtils

public class MetaUtils
extends Object

アクションのメタ情報を扱うためのユーティリティクラスです。

作成者:
baba

コンストラクタの概要
MetaUtils()
           
 
メソッドの概要
static RequestMethod[] getAcceptableRequestMethods(Class<?> actionClass, Method method)
          指定されたアクションメソッドが受付可能な要求メソッドを取得します。
static String getActionDirectory(Class<?> actionClass)
          指定されたアクションクラスに対応するディレクトリを取得します。
static String getActionPath(Class<?> actionClass, Method method)
          指定されたアクションメソッドのパスを取得します。
static String getOnSubmit(Method method)
          指定されたアクションメソッドを使用することを判断するためのパラメータ名を取得します。
static int getPriority(Method method)
          アクションメソッドのPathアノテーションから優先度を取得します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

MetaUtils

public MetaUtils()
メソッドの詳細

getActionDirectory

public static String getActionDirectory(Class<?> actionClass)
指定されたアクションクラスに対応するディレクトリを取得します。

パラメータ:
actionClass - アクションクラス
戻り値:
アクションクラスに対応するディレクトリ

getActionPath

public static String getActionPath(Class<?> actionClass,
                                   Method method)
指定されたアクションメソッドのパスを取得します。

パラメータ:
actionClass - アクションクラス
method - アクションメソッド
戻り値:
アクションメソッドのパス

getAcceptableRequestMethods

public static RequestMethod[] getAcceptableRequestMethods(Class<?> actionClass,
                                                          Method method)
指定されたアクションメソッドが受付可能な要求メソッドを取得します。

パラメータ:
actionClass - アクションクラス
method - アクションメソッド
戻り値:
受付可能な要求メソッド

getPriority

public static int getPriority(Method method)
アクションメソッドのPathアノテーションから優先度を取得します。

パラメータ:
method - アクションメソッド
戻り値:
優先度。メソッドにPathアノテーションが設定されていない場合Integer.MAX_VALUE

getOnSubmit

public static String getOnSubmit(Method method)
指定されたアクションメソッドを使用することを判断するためのパラメータ名を取得します。

パラメータ名によらずに実行する場合は null を返します。

パラメータ:
method - アクションメソッド
戻り値:
パラメータ名


Copyright © 2006-2010 The Seasar Foundation. All Rights Reserved.