|
||||||||||
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
ActionRegistryException
public boolean removeActionListener(ActionListener listener)
ActionRegistry
removeActionListener
in interface ActionRegistry
public void addActionListener(ActionListener listener)
ActionRegistry
addActionListener
in interface ActionRegistry
public java.util.List<ActionListener> collectListenersForAction(ActionExecutionContext eContext)
public void setActionDescriptors(java.util.List<ActionDescriptor> actionDescriptors)
public boolean hasRegisteredActions(java.lang.Class targetClass, ActionContainer targetObject)
ActionRegistry
TRUE
если в реестре есть действия
зарегистрированные для целевого класса. Если целевой класс реализует
интерфейс GlobalActionsProvider
тогда метод вернет TRUE
если в реестре есть хотя бы одно глобальное действие.
hasRegisteredActions
in interface ActionRegistry
targetClass
- целевой класс.public java.util.List<ActionState> getActionsStates(ActionContainer targetObject, java.lang.Class targetClass) throws ActionRegistryException
ActionRegistry
GlobalActionsProvider
.
getActionsStates
in interface ActionRegistry
targetObject
- целевой объект
ActionRegistryException
public ExecutedActionInfo executeAction(ActionExecutionContext context) throws ActionRegistryException
ActionRegistry
executeAction
in interface ActionRegistry
ActionRegistryException
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
ObjectEnhancerException
public 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 ActionRegistry
protected 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 |