jp.terasoluna.fw.web.struts.action.handler
クラス DefaultDelegateActionHandler

java.lang.Object
  上位を拡張 jp.terasoluna.fw.web.struts.action.handler.DefaultDelegateActionHandler
すべての実装されたインタフェース:
DelegateActionHandler

public class DefaultDelegateActionHandler
extends Object
implements DelegateActionHandler

DefaultDelegateActionHandler

getDelegateAction処理を拡張する際に利用する。

関連項目:
DelegatingRequestProcessorEx

フィールドの概要
protected  List<ActionResolver> actionResolverList
          ActionResolverリスト
protected  ReentrantReadWriteLock arLock
          ロックオブジェクト(ActionResolverリスト)
protected  Map<?,?> configReflectorMap
          ConfigurationReflectorマップ
protected  ReentrantReadWriteLock crLock
          ロックオブジェクト(ConfigurationReflectorマップ)
protected  ConcurrentHashMap<String,ActionResolver> pathResolverMap
          アクションパスに対応するActionResolverをキャッシュ
 
コンストラクタの概要
DefaultDelegateActionHandler()
           
 
メソッドの概要
protected  Class<? extends Object> getTargetClass(Object targetObject)
          オブジェクトのクラス型を取得する
protected  boolean isSupportsClass(Class<? extends Object> targetClass)
          処理対象のクラスかどうか判定する。
 org.apache.struts.action.Action resolveAction(String beanName, org.apache.struts.action.Action action, org.apache.struts.action.ActionMapping mapping, org.apache.struts.config.ModuleConfig moduleConfig, org.apache.struts.action.ActionServlet servlet, org.springframework.web.context.WebApplicationContext wac)
          対応するアクションを取得する
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

actionResolverList

protected List<ActionResolver> actionResolverList
ActionResolverリスト


pathResolverMap

protected ConcurrentHashMap<String,ActionResolver> pathResolverMap
アクションパスに対応するActionResolverをキャッシュ


configReflectorMap

protected Map<?,?> configReflectorMap
ConfigurationReflectorマップ


arLock

protected ReentrantReadWriteLock arLock
ロックオブジェクト(ActionResolverリスト)


crLock

protected ReentrantReadWriteLock crLock
ロックオブジェクト(ConfigurationReflectorマップ)

コンストラクタの詳細

DefaultDelegateActionHandler

public DefaultDelegateActionHandler()
メソッドの詳細

resolveAction

public org.apache.struts.action.Action resolveAction(String beanName,
                                                     org.apache.struts.action.Action action,
                                                     org.apache.struts.action.ActionMapping mapping,
                                                     org.apache.struts.config.ModuleConfig moduleConfig,
                                                     org.apache.struts.action.ActionServlet servlet,
                                                     org.springframework.web.context.WebApplicationContext wac)
インタフェース DelegateActionHandler の記述:
対応するアクションを取得する

定義:
インタフェース DelegateActionHandler 内の resolveAction
パラメータ:
beanName - Bean名
action - Action
mapping - ActionMapping
moduleConfig - ModuleConfig
servlet - ActionServlet
wac - WebApplicationContext
戻り値:
Action

isSupportsClass

protected boolean isSupportsClass(Class<? extends Object> targetClass)
処理対象のクラスかどうか判定する。

パラメータ:
targetClass - 処理対象クラス
戻り値:
true or false

getTargetClass

protected Class<? extends Object> getTargetClass(Object targetObject)
オブジェクトのクラス型を取得する

パラメータ:
targetObject - 対象のオブジェクト
戻り値:
対象のオブジェクトのクラス型


Copyright © 2012. All Rights Reserved.