|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConversationBinder
An object that is able to bind an arbitrary object to a specific conversation.
Only code that extends Orchestra to support new dependency-injection frameworks should need to implement this interface.
Method Summary | |
---|---|
Object |
bind(Object instance)
Return a proxy object that "binds" the specified instance to a specific conversation. |
Method Detail |
---|
Object bind(Object instance)
Whenever a method is executed on the returned proxy the conversation is "entered" before the method is invoked on the actual instance, as if the specified instance were a bean that was defined in the dependency-injection framework as belonging to the conversation.
This interface is expected to be used only via calls to Conversation.bind(Object).
The proxy object returned has a "direct" binding to the conversation. This makes calls to the instance relatively quick, but also means that the proxy object becomes "stale" if the conversation becomes invalid.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |