jfun.yan
Interface Binder<From,To>

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
ComponentBinder<From,To>
All Known Implementing Classes:
StoreBinder

public interface Binder<From,To>
extends java.io.Serializable

Represents the "bind" function in monad.

Codehaus.org.

Author:
Ben Yu

Method Summary
 Creator<To> bind(From v)
          Creates a Creator object according to a value.
 

Method Detail

bind

Creator<To> bind(From v)
                 throws java.lang.Throwable
Creates a Creator object according to a value. This value is typically a component instance created from another Component object.

Parameters:
v - the value.
Returns:
the Creator object.
Throws:
java.lang.Throwable - if any error happens in the bind.