com.bareflow
Interface IComponentBuilder


public interface IComponentBuilder

An interface to build a component from a model object. There is no specific requirements for the model object. Each builder implementation should know how to build a component from the model. Builders are not instantiated directly. Instead IComponentRegistry should be used to create components.

See Also:
IComponentRegistry, IBuilderContext

Method Summary
 java.lang.Object buildComponent(java.lang.Object model, IBuilderContext ctx)
          Builds component from the model object in the given builder context
 

Method Detail

buildComponent

java.lang.Object buildComponent(java.lang.Object model,
                                IBuilderContext ctx)
                                throws BareflowException
Builds component from the model object in the given builder context

Parameters:
model - model object to build omponent from
ctx - builder context
Returns:
component from the model object in the given builder context
Throws:
BareflowException - if component cannot be built