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

Reply via email to