public void newInstance(Object arg0) throws IllegalAccessException, InvocationTargetException, NamingException {
// FIXME delegate injections to the common injection framework..
}
public Object newInstance(String className, ClassLoader cl) throws IllegalAccessException, InvocationTargetException, NamingException, InstantiationException, ClassNotFoundException {
final ComponentInstantiator instantiator = webComponentInstantiatorMap.get(className);
if(instantiator != null) {
return instantiate(instantiator);
}
// Use by JspServletWrapper for example.
Class<?> clazz = cl.loadClass(className);