public String getComponentClass( ClassLoader classLoader, String tagName) throws ClassNotFoundException, InstantiationException, IllegalAccessException { if(tagName.equals("view") || tagName.equals("subview") || tagName.equals("verbatim")) { return null; } UIComponentTagBase componentTag = (UIComponentTagBase) getTagHandler(classLoader, tagName); String componentType = componentTag.getComponentType(); ComponentInfo componentInfo = componentInfoMap.get(componentType); return componentInfo.getComponentClass(); }
public Object getComponent( ClassLoader classLoader, String tagName) throws ClassNotFoundException, InstantiationException, IllegalAccessException { UIComponentTagBase componentTag = (UIComponentTagBase) getTagHandler(classLoader, tagName); String componentType = componentTag.getComponentType(); ComponentInfo componentInfo = componentInfoMap.get(componentType); String componentClass = componentInfo.getComponentClass(); return classLoader.loadClass(componentClass).newInstance(); }