|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.weda.action.impl.ActionRegistryImpl
public class ActionRegistryImpl
Цель: сервис, предоставляющий доступ к действиям
| Constructor Summary | |
|---|---|
ActionRegistryImpl()
|
|
| Method Summary | |
|---|---|
void |
addActionListener(ActionListener listener)
Метод добавляет слушателя выполнения действий к реестру. |
protected void |
cacheExecutedActionInfo(ExecutedActionInfoImpl actionInfo)
|
java.util.List<ActionListener> |
collectListenersForAction(ActionExecutionContext eContext)
|
protected Action |
createAction(java.lang.Class actionClass)
|
ExecutedActionInfo |
executeAction(ActionExecutionContext context)
Метод выполняет действие. |
protected void |
extractActionParameters(ActionDescriptor actionDescriptor)
|
java.util.List<ActionState> |
getActionsStates(ActionContainer targetObject,
java.lang.Class targetClass)
Метод возвращает список состояний действий досупных для указанного целевого объекта. |
protected org.weda.action.impl.ActionRegistryImpl.ActionStackEntity |
getActionStackEntity()
|
ExecutedActionInfo |
getLastExecutedActionInfo()
Метод возвращает информацию о последнем выполненном действии. |
java.lang.String |
getMessageCategory()
|
boolean |
hasRegisteredActions(java.lang.Class targetClass,
ActionContainer targetObject)
Метод вернет TRUE если в реестре есть действия
зарегистрированные для целевого класса. |
void |
init()
|
protected ExecutedActionInfoImpl |
proccedLinkedActions(ActionExecutionContext ctx,
ExecutedActionInfoImpl actionInfo)
|
boolean |
removeActionListener(ActionListener listener)
Метод удаляет слушателя выполнения действий из реестра. |
void |
setActionDescriptors(java.util.List<ActionDescriptor> actionDescriptors)
|
void |
setActionListenersConfig(java.util.List<ActionListener> actionListenersConfig)
|
void |
setCacheManager(CacheManager cacheManager)
|
void |
setMessageCategory(java.lang.String messageCategory)
|
void |
setMessages(MessagesRegistry messages)
|
void |
setObjectDescriptorRegistry(ObjectDescriptorRegistry objectDescriptorRegistry)
|
void |
setObjectEnhancer(ObjectEnhancer objectEnhancer)
|
void |
setPropertyValue(PropertyValue propertyValue)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActionRegistryImpl()
| Method Detail |
|---|
public void init()
throws ActionRegistryException
ActionRegistryExceptionpublic boolean removeActionListener(ActionListener listener)
ActionRegistry
removeActionListener in interface ActionRegistrypublic void addActionListener(ActionListener listener)
ActionRegistry
addActionListener in interface ActionRegistrypublic java.util.List<ActionListener> collectListenersForAction(ActionExecutionContext eContext)
public void setActionDescriptors(java.util.List<ActionDescriptor> actionDescriptors)
public boolean hasRegisteredActions(java.lang.Class targetClass,
ActionContainer targetObject)
ActionRegistryTRUE если в реестре есть действия
зарегистрированные для целевого класса. Если целевой класс реализует
интерфейс GlobalActionsProvider тогда метод вернет TRUE
если в реестре есть хотя бы одно глобальное действие.
hasRegisteredActions in interface ActionRegistrytargetClass - целевой класс.
public java.util.List<ActionState> getActionsStates(ActionContainer targetObject,
java.lang.Class targetClass)
throws ActionRegistryException
ActionRegistryGlobalActionsProvider.
getActionsStates in interface ActionRegistrytargetObject - целевой объект
ActionRegistryException
public ExecutedActionInfo executeAction(ActionExecutionContext context)
throws ActionRegistryException
ActionRegistry
executeAction in interface ActionRegistryActionRegistryException
protected ExecutedActionInfoImpl proccedLinkedActions(ActionExecutionContext ctx,
ExecutedActionInfoImpl actionInfo)
throws java.lang.Exception
java.lang.Exception
protected void extractActionParameters(ActionDescriptor actionDescriptor)
throws ActionRegistryException
ActionRegistryException
protected Action createAction(java.lang.Class actionClass)
throws ObjectEnhancerException
ObjectEnhancerExceptionpublic void setObjectDescriptorRegistry(ObjectDescriptorRegistry objectDescriptorRegistry)
public void setPropertyValue(PropertyValue propertyValue)
public void setCacheManager(CacheManager cacheManager)
protected void cacheExecutedActionInfo(ExecutedActionInfoImpl actionInfo)
public ExecutedActionInfo getLastExecutedActionInfo()
ActionRegistry
getLastExecutedActionInfo in interface ActionRegistryprotected org.weda.action.impl.ActionRegistryImpl.ActionStackEntity getActionStackEntity()
public java.lang.String getMessageCategory()
public void setMessageCategory(java.lang.String messageCategory)
public void setObjectEnhancer(ObjectEnhancer objectEnhancer)
public void setMessages(MessagesRegistry messages)
public void setActionListenersConfig(java.util.List<ActionListener> actionListenersConfig)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||