public interface ActionStyle extends Immutable
Different environments have different approaches to defining what constitutes an 'action'. For
example, Metawidget supplies a UiAction
annotation and the Spring AppFramework
supplies an Action
annotation.
ActionStyle
s must be immutable (or, at least, appear that way to clients. They can
have caches or configuration settings internally, as long as they are threadsafe).
Modifier and Type | Method and Description |
---|---|
Map<String,Action> |
getActions(String type)
Gets the Actions for the given type.
|
Map<String,Action> getActions(String type)
Actions must be returned using a consistent ordering, so that both unit tests and
CompositeInspector
merging is consistent. If the underlying technology does not
define an ordering, one must be imposed (eg. sorted alphabetically by name), even though this
may later be overridden by other mechanisms (eg.
ComesAfterInspectionResultProcessor
sorts by comes-after
).
Copyright © 2015. All Rights Reserved.