Ulrich Mayring wrote:
Stephen McConnell wrote:

Both Fortress and Merlin support stateless components.

Which makes me wonder: what is a stateless component? One that is
thread-safe? One that has no lifecycle?

Strictly speaking, a stateless component is one that
does not maintain information between method calls (AKA state).

One example of a state-ful component would be this:

Store myStore = (Store) m_manager.lookup(Store.ROLE);

myStore.save("mydoc", mydocument);

//..... several invokations later .....

mydocument = myStore.load("mydoc");


I.e. there is information that is kept between component uses.


A stateless component (the easiest to create ;P) does not
do that at all.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to