which is exactly what we are trying to avoid - having generics in Component.

-Matej

On Tue, Jun 10, 2008 at 6:19 PM, Ricky <[EMAIL PROTECTED]> wrote:
> I don't know if i was clear enough, sorry about that.
>
> I meant if  you have something like :
>
> public Component<MODEL extends IMODEL<ID>, ID extends Serializable>{
>
> // getter here
>  public MODEL getModel() { }
>
> // setter here
> public void setModel(final MODEL model){ }
>
> }
>
> then, you don't have to do anything, basically all your components like for
> example listItem would be :
>
> public ListItem<MODEL extends IModel<ID>,ID extends Serializable> extends
> Component<MODEL, ID>{
>
>
> ////// DONT need to override anything here!!!
>
> }
>
>
> Instead of capture i used an ID, because it makes more sense to have a model
> generically typed to a serializable id.
> Just some thoughts.
>
> Rick
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to