Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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
`java.lang.Object` | `bind(java.lang.Object instance)` Return a proxy object that "binds" the specified instance to a specific conversation.

Method Detail

### bind

    java.lang.Object bind(java.lang.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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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