xbean-reflect has the object creation code and I believe xbean-finder
does annotation scraping. I'm not sure if there are methods to make
it easier to extract all the annotations from a particular class and
its superclasses or if this is easy enough to do by hand.
david jencks
On Feb 17, 2009, at 9:39 PM, Karan Malhi wrote:
I want to make a utility like so
public Object newInstance(Class clazz){
// this method should create an instance of the clazz and perform
injections and return the instance
}
Is there an OpenEJB API which I could use , where I could give it an
arbitrary class and it would scan the class for annotations and
perform the
neccessary injections.
If not, then I will probably use the DefaultAnnotationProcessor
available in
Tomcat.
--
Karan Singh Malhi