|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
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
内の afterPropertiesSet
Exception
protected void addTargetComponent(Map<String,Object> cpMap, org.springframework.web.context.WebApplicationContext wac)
cpMap
- コンポーネントマップwac
- WebApplicationContext
protected 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
内の isBeanExist
beanName
- String Bean名mapping
- ActionMapping
servlet
- ActionServlet
wac
- 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
内の getActionCacheKey
beanName
- String Bean名mapping
- ActionMapping
servlet
- ActionServlet
wac
- 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
内の getActionCache
cacheKey
- アクションキャッシュキー
Action
キャッシュされたアクションprotected void putActionCache(Object cacheKey, org.apache.struts.action.Action action)
AbstractActionResolver
の記述:
AbstractActionResolver
内の putActionCache
cacheKey
- 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
内の extensionProcess
key
- Object アクションキャッシュキーaction
- Action
処理対象アクションbeanName
- String Bean名mapping
- ActionMapping
servlet
- ActionServlet
wac
- 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
内の isCacheEnabled
key
- Object アクションキャッシュキーresultAction
- Action
処理対象アクションbeanName
- String Bean名mapping
- ActionMapping
servlet
- ActionServlet
wac
- WebApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
org.springframework.context.ApplicationContextAware
内の setApplicationContext
org.springframework.beans.BeansException
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |