org.apache.myfaces.orchestra.conversation
Interface ConversationBinder


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.

Since:
1.3

Method Summary
 Object bind(Object instance)
          Return a proxy object that "binds" the specified instance to a specific conversation.
 

Method Detail

bind

Object bind(Object instance)
Return a proxy object that "binds" the specified instance to a specific conversation.

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.



Copyright © 2012 The Apache Software Foundation. All Rights Reserved.