jfun.yan
Interface ComponentBinder<From,To>

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

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

In addition to mapping the previous result to a new Creator, ComponentBinder also verifies the type of the previous result.
Implement this interface if you want to do static-verification.

Zephyr Business Solution

Author:
Ben Yu

Method Summary
 java.lang.Class<To> bindType(java.lang.Class<From> type)
          Get the type of the component being bound.
 Verifiable verify(java.lang.Class<From> type)
          Get a Verifiable object that's responsible for verifying the component being bound.
 
Methods inherited from interface jfun.yan.Binder
bind
 

Method Detail

verify

Verifiable verify(java.lang.Class<From> type)
Get a Verifiable object that's responsible for verifying the component being bound.

Parameters:
type - the type of the previous component. It cannot be null.
Returns:
the Verifiable object.

bindType

java.lang.Class<To> bindType(java.lang.Class<From> type)
Get the type of the component being bound.

Parameters:
type - the type of the previous component, it can be null.
Returns:
the type.