|
PageMixer API - 3.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jp.ne.dti.lares.foozy.pagemixer.junit.Event
Abstraction of event for "Consumer".
Error message codes are shown below.
consume
is invoked unexpectedly.flush
is invoked unexpectedly.clear
is invoked unexpectedly.
Producer
implementations(
MutableProducer or
FixedProducer)
invoke
clear
for later re-use,
if specified consumer can not complete consumig/flushing.
| Constructor Summary | |
Event()
Constructor. |
|
| Method Summary | |
void |
addContextCondition(ContextCondition condition)
Add condition for context to this event. |
void |
buildup(ConsumerContext context)
Build specified context up as satisfies all added conditions for context. |
void |
checkContextConditions(java.lang.String subject,
ConsumerContext context)
Check specified context with all added conditions for context. |
void |
clear(java.lang.String subject)
Clear internal status to reuse itself. |
void |
consume(java.lang.String subject,
ConsumerContext context,
Token token)
Consume token with specified context. |
abstract void |
execute(ConsumerContext context,
Consumer consumer)
Do appropriate action(s). |
void |
flush(java.lang.String subject,
ConsumerContext context)
Finalize with specified context. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Event()
| Method Detail |
public void addContextCondition(ContextCondition condition)
condition - to be added.
public void checkContextConditions(java.lang.String subject,
ConsumerContext context)
context - to be checked.public void buildup(ConsumerContext context)
context - to be build up.
public abstract void execute(ConsumerContext context,
Consumer consumer)
context - to be passed to consumer.consumer - to be driven.
public void consume(java.lang.String subject,
ConsumerContext context,
Token token)
This implementation causes invocation of
JUnit "Asset.fail.
subject - of the subject now checkingcontext - context processing depends ontoken - token to be processed
public void flush(java.lang.String subject,
ConsumerContext context)
This implementation causes invocation of
JUnit "Asset.fail.
subject - of the subject now checkingcontext - context processing depends onpublic void clear(java.lang.String subject)
This implementation causes invocation of
JUnit "Asset.fail.
subject - of the subject now checking
|
PageMixer API - 3.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||