br.com.arsmachina.tapestrycrud.selectmodel
Interface SelectModelFactory

All Known Implementing Classes:
SelectModelFactoryImpl

public interface SelectModelFactory

Interface that defines a factory of SelectModel instances for any given type, provided it has a configured SingleTypeSelectModelFactory for it.

Author:
Thiago H. de Paula Figueiredo
See Also:
SelectModel

Method Summary
 SelectModel create(Class<?> clasz)
          Creates a SelectModel containing all the instances of a given type.
<T> SelectModel
create(Class<T> clasz, List<T> objects)
          Creates a SelectModel containing some given instances of a given type.
 

Method Detail

create

SelectModel create(Class<?> clasz)
Creates a SelectModel containing all the instances of a given type.

Parameters:
clasz - the Class that represents the wanted type. It cannot be null.
Returns:
a SelectModel.

create

<T> SelectModel create(Class<T> clasz,
                       List<T> objects)
Creates a SelectModel containing some given instances of a given type.

Parameters:
clasz - the Class that represents the wanted type. It cannot be null.
objects - a List containing the objects used as options.


Copyright © 2008-2009 Thiago H. de Paula Figueiredo. All Rights Reserved.