org.beanfabrics
Class Binder

java.lang.Object
  extended by org.beanfabrics.Binder

public class Binder
extends java.lang.Object

The Binder offers some convenient methods for binding a ModelSubscriber to a PresentationModel.


Constructor Summary
Binder()
           
 
Method Summary
static ModelProvider bind(ModelSubscriber subscriber, PresentationModel presentationModel)
          Binds the given ModelSubscriber to the given PresentationModel
static ModelProvider bind(ModelSubscriber subscriber, PresentationModel root, Path path)
          Binds the given ModelSubscriber to the PresentationModel specified by the given Path relative to the given root model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Binder

public Binder()
Method Detail

bind

public static ModelProvider bind(ModelSubscriber subscriber,
                                 PresentationModel root,
                                 Path path)
Binds the given ModelSubscriber to the PresentationModel specified by the given Path relative to the given root model.

Returns:
the ModelProvider that manages the subscription.

bind

public static ModelProvider bind(ModelSubscriber subscriber,
                                 PresentationModel presentationModel)
Binds the given ModelSubscriber to the given PresentationModel

Returns:
the ModelProvider that manages the subscription.