|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjp.terasoluna.fw.web.struts.action.resolver.AbstractActionResolver
jp.terasoluna.fw.web.struts.action.resolver.BLogicActionResolver
public class BLogicActionResolver
BLogicActionResolver
BLogicとBLogicActionを結びつけるアクションリゾルバ。
デフォルトでは "defaultBlogicAction" という名前でBLogicAction取得する。
BLogicActionのBean定義のスコープは prototype で定義しておくこと。
モジュール分割を行う場合は、ContextLoaderListener から読み込まれるBean定義ファイル(applicationContext.xmlなど)には定義せず、
ContextLoaderPlugIn から読み込まれるBean定義ファイル(moduleContext.xmlなど)にモジュールごとに定義すること。
DelegatingRequestProcessorEx,
DefaultDelegateActionHandler,
ActionResolver,
AbstractActionResolver| フィールドの概要 | |
|---|---|
protected Map<String,String> |
actionPathMap
アクションパス-Bean名マップ |
protected ConcurrentHashMap<jp.terasoluna.fw.service.thin.BLogic<?>,org.apache.struts.action.Action> |
blogicActionMap
BLogicActionキャッシュ |
protected ConcurrentHashMap<Object,org.apache.struts.action.Action> |
otherActionMap
Actionキャッシュ |
protected org.springframework.web.context.WebApplicationContext |
webApplicationContext
WebApplicationContext |
| クラス jp.terasoluna.fw.web.struts.action.resolver.AbstractActionResolver から継承されたフィールド |
|---|
actionName, configReflectorMap, lock, pathPatterns, regexMap |
| インタフェース org.springframework.core.Ordered から継承されたフィールド |
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
| コンストラクタの概要 | |
|---|---|
BLogicActionResolver()
|
|
| メソッドの概要 | |
|---|---|
protected void |
addTargetComponent(Map<String,Object> cpMap,
org.springframework.web.context.WebApplicationContext wac)
処理対象のコンポーネントをコンポーネントマップに追加する |
void |
afterPropertiesSet()
|
protected org.apache.struts.action.Action |
extensionProcess(Object key,
org.apache.struts.action.Action action,
String beanName,
org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionServlet servlet,
org.springframework.web.context.WebApplicationContext wac)
アクションに対する追加処理 |
protected org.apache.struts.action.Action |
getActionCache(Object cacheKey)
アクションキャッシュから取得する。 |
protected Object |
getActionCacheKey(String beanName,
org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionServlet servlet,
org.springframework.web.context.WebApplicationContext wac)
アクションキャッシュキーを取得する |
protected String[] |
getActionComponentPath(Class<? extends Object> targetClass)
ターゲットクラスのActionComponentアノテーションから取得したアクションパス配列を返却する |
protected String[] |
getActionPathArray(Object obj)
ターゲットオブジェクトからアクションパス配列を取得して返却する |
protected String |
getAnnotationBeanEntry(String actionPath,
org.springframework.web.context.WebApplicationContext wac)
アノテーションに付与されたアクションパス名から実際のBean名を返却する. |
protected String[] |
getBLogicComponentPath(Class<? extends Object> targetClass)
ターゲットクラスのBLogicComponentアノテーションから取得したアクションパス配列を返却する |
protected Class<? extends Object> |
getTargetClass(Object targetObject)
オブジェクトのクラス型を取得する |
protected boolean |
isBeanExist(String beanName,
org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionServlet servlet,
org.springframework.web.context.WebApplicationContext wac)
Bean存在チェック |
protected boolean |
isCacheEnabled(Object key,
org.apache.struts.action.Action resultAction,
String beanName,
org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionServlet servlet,
org.springframework.web.context.WebApplicationContext wac)
キャッシュすべきかどうか判定する |
protected void |
putActionCache(Object cacheKey,
org.apache.struts.action.Action action)
アクションキャッシュに格納する。 |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
| クラス jp.terasoluna.fw.web.struts.action.resolver.AbstractActionResolver から継承されたメソッド |
|---|
callConfigurationReflector, getDelegateAction, getOrder, setActionName, setOrder, setPathPattern, setPathPatterns, supports |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
protected ConcurrentHashMap<jp.terasoluna.fw.service.thin.BLogic<?>,org.apache.struts.action.Action> blogicActionMap
BLogicActionキャッシュ
protected ConcurrentHashMap<Object,org.apache.struts.action.Action> otherActionMap
Actionキャッシュ
protected Map<String,String> actionPathMap
protected org.springframework.web.context.WebApplicationContext webApplicationContext
WebApplicationContext
| コンストラクタの詳細 |
|---|
public BLogicActionResolver()
| メソッドの詳細 |
|---|
public void afterPropertiesSet()
throws Exception
org.springframework.beans.factory.InitializingBean 内の afterPropertiesSetException
protected void addTargetComponent(Map<String,Object> cpMap,
org.springframework.web.context.WebApplicationContext wac)
cpMap - コンポーネントマップwac - WebApplicationContextprotected String[] getActionPathArray(Object obj)
obj - Object ターゲットオブジェクト
protected String[] getBLogicComponentPath(Class<? extends Object> targetClass)
targetClass - ターゲットクラス
protected String[] getActionComponentPath(Class<? extends Object> targetClass)
targetClass - ターゲットクラス
protected boolean isBeanExist(String beanName,
org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionServlet servlet,
org.springframework.web.context.WebApplicationContext wac)
AbstractActionResolver の記述:
AbstractActionResolver 内の isBeanExistbeanName - String Bean名mapping - ActionMappingservlet - ActionServletwac - WebApplicationContext
protected Object getActionCacheKey(String beanName,
org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionServlet servlet,
org.springframework.web.context.WebApplicationContext wac)
AbstractActionResolver の記述:
AbstractActionResolver 内の getActionCacheKeybeanName - String Bean名mapping - ActionMappingservlet - ActionServletwac - WebApplicationContext
protected String getAnnotationBeanEntry(String actionPath,
org.springframework.web.context.WebApplicationContext wac)
actionPath - String アクションパスwac - WebApplicationContext
protected Class<? extends Object> getTargetClass(Object targetObject)
targetObject - 対象のオブジェクト
protected org.apache.struts.action.Action getActionCache(Object cacheKey)
AbstractActionResolver の記述:
AbstractActionResolver 内の getActionCachecacheKey - アクションキャッシュキー
Action キャッシュされたアクション
protected void putActionCache(Object cacheKey,
org.apache.struts.action.Action action)
AbstractActionResolver の記述:
AbstractActionResolver 内の putActionCachecacheKey - Object アクションキャッシュキーaction - Action キャッシュするアクション
protected org.apache.struts.action.Action extensionProcess(Object key,
org.apache.struts.action.Action action,
String beanName,
org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionServlet servlet,
org.springframework.web.context.WebApplicationContext wac)
AbstractActionResolver の記述:
AbstractActionResolver 内の extensionProcesskey - Object アクションキャッシュキーaction - Action 処理対象アクションbeanName - String Bean名mapping - ActionMappingservlet - ActionServletwac - WebApplicationContext
Action 処理済アクション
protected boolean isCacheEnabled(Object key,
org.apache.struts.action.Action resultAction,
String beanName,
org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionServlet servlet,
org.springframework.web.context.WebApplicationContext wac)
AbstractActionResolver の記述:
AbstractActionResolver 内の isCacheEnabledkey - Object アクションキャッシュキーresultAction - Action 処理対象アクションbeanName - String Bean名mapping - ActionMappingservlet - ActionServletwac - WebApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
org.springframework.context.ApplicationContextAware 内の setApplicationContextorg.springframework.beans.BeansException
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||