org.qi4j.api.sideeffect
Class SideEffectOf<T>

java.lang.Object
  extended by org.qi4j.api.sideeffect.SideEffectOf<T>
Direct Known Subclasses:
DebugOnConsoleSideEffect, GenericSideEffect, LogOnConsoleSideEffect, TraceOnConsoleSideEffect

public abstract class SideEffectOf<T>
extends Object

Base class for SideEffects. It introduces a typed "next" pointer that SideEffects can use to get the result of the original invocation.

Generic SideEffects should subclass GenericSideEffect instead.

SideEffects implementations must be thread-safe in their implementation, as multiple threads may share instances.


Field Summary
protected  T result
           
 
Constructor Summary
SideEffectOf()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

result

@SideEffectFor
protected final T result
Constructor Detail

SideEffectOf

public SideEffectOf()