The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 Reflection on Tiger
Subject:  A generic Factory
Date:  2005-10-14 14:46:51
From:  ctof
Response to: A generic Factory


class Factory<T> {
private Class<T> c;

public Factory() {
this.c = ???? T.class;
}

there is really no way to get the Class of T without passe the Class<T> in method parameter?

Thx
Christophe

 Feed java.net RSS Feeds