|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.uwyn.rife.engine.ElementSupport
com.uwyn.rife.engine.Element
public abstract class Element
This is a convenience abstract class that implements the ElementAware interface and extends the ElementSupport class.
There are no mandatory abstract methods to implement and all ElementSupport methods are local.
Additionally, the clone() method is implemented to provide as
good as possible default behaviour for continuations usage.
| Constructor Summary | |
|---|---|
protected |
Element()
No-op default constructor that can only be used by extending classes. |
| Method Summary | |
|---|---|
Object |
clone()
Provides default cloning behavior by trying to make deep clones of all member variables, correctly handling primitives and collections. |
void |
noticeElement(ElementSupport element)
This method is called immediately after the instantiation of the element to provide the support object that allows the element to function in the current context. |
void |
processElement()
The default entry point that will be called when a request arrives. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Element()
| Method Detail |
|---|
public final void noticeElement(ElementSupport element)
ElementAwareIt's good practice to store the elementSupport
parameter in a member variable of the element, making it possible to
use it from any method in the element.
This method should also be used to provide the elementSupport
instance with an ElementDeployer, an ElementInitializer
and an ElementChildTrigger, if they are needed.
noticeElement in interface ElementAwareelement - the ElementSupport instance for this
request and this elementElementSupport
public void processElement()
throws EngineException
ElementAware
processElement in interface ElementAwareEngineException
public Object clone()
throws CloneNotSupportedException
Cloning is important when this element uses continuations since at each continuation step a clone will be made of the element instance to be able to still execute older continuations.
clone in interface ContinuableObjectclone in class ElementSupportCloneNotSupportedExceptionContinuationConfigRuntime.cloneContinuations(T)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||