T - R - public abstract class ManyToOneAction<T extends Content,R extends Content> extends GenericAction<T,R>
Abstract ManyToOneAction class.
FIXME bad architectureACTION_DEPENDENCY_LOG_KEY, ACTION_DEPENDENCY_META_KEY| Constructor and Description |
|---|
ManyToOneAction(ActionContext context,
Meta annotation)
Constructor for ManyToOneAction.
|
ManyToOneAction(ActionContext context,
java.lang.String name,
Meta annotation)
Constructor for ManyToOneAction.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterGroup(Logable log,
R output)
Выполняется один раз после основного действия независимо от того,
распаралелено действие или нет
|
protected void |
beforeGroup(Logable log,
NamedGroup<T> input)
Выполняется один раз перед основным действием независимо от того,
распаралелено действие или нет
|
protected java.util.List<NamedGroup<T>> |
buildGroups(MetaReader reader,
java.util.List<T> input)
buildGroups.
|
protected java.util.List<Dependency<R>> |
execute(Logable log,
Meta groupAnnotation,
DependencySet<T> input) |
protected abstract R |
execute(Logable log,
MetaReader reader,
NamedGroup<T> input)
Calculate the action result for single input content
|
R |
runGroup(Logable log,
NamedGroup<T> input)
runGroup.
|
afterAction, beforeAction, buildLog, getAnnotationReader, getAnnotationReader, getContext, getDependencyLog, getDescriptor, getInputType, getName, getOutputType, isEmptyInputAllowed, isParallelExecutionAllowed, run, run, wrapannotate, annotate, getValue, hasValue, meta, setDescriptorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisAnonimousgetBoolean, getBoolean, getDouble, getDouble, getInt, getInt, getString, getString, getValuepublic ManyToOneAction(ActionContext context, java.lang.String name, Meta annotation)
Constructor for ManyToOneAction.
context - a ActionContext object.name - a String object.annotation - a Meta object.public ManyToOneAction(ActionContext context, Meta annotation)
Constructor for ManyToOneAction.
context - a ActionContext object.annotation - a Meta object.protected java.util.List<Dependency<R>> execute(Logable log, Meta groupAnnotation, DependencySet<T> input)
public R runGroup(Logable log, NamedGroup<T> input)
runGroup.
log - a Logable object.input - a NamedGroup object.protected java.util.List<NamedGroup<T>> buildGroups(MetaReader reader, java.util.List<T> input)
buildGroups.
reader - a MetaReader
object.input - a List object.List object.protected abstract R execute(Logable log, MetaReader reader, NamedGroup<T> input)
log - a Logable object.reader - a MetaReader
object.input - a T object.ContentException - if any.protected void beforeGroup(Logable log, NamedGroup<T> input) throws ContentException
log - a Logable object.input - a Content object.ContentException - if any.protected void afterGroup(Logable log, R output) throws ContentException
log - a Logable object.output - a Content object.ContentException - if any.