private final Map<Class<?>, WidgetConfigHolder> annotationToWidgetConfigMap;
public DefaultWidgetRegistry(ClassPool classPool, ClassLoader classLoader, Reflections reflections)
throws MalformedURLException, ClassNotFoundException, NotFoundException {
LogSingleton LOG = LogSingleton.getInstance();
List<WidgetConfigHolder> widgetConfigs = ComponentMojoUtil.getAllWidgetAnnotations(classPool, classLoader,
reflections);
LOG.debug(widgetConfigs.size() + " Widget Configurations found");
this.annotationToWidgetConfigMap = new HashMap<Class<?>, WidgetConfigHolder>();
for (WidgetConfigHolder curConfig : widgetConfigs) {
LOG.debug("Widget Config -- " + curConfig.getWidgetClass() + " : " + curConfig.getMakerClass() + " : "
+ curConfig.getAnnotationClass() + " : " + curConfig.getXtype());
if (curConfig.getAnnotationClass() != null) {
this.annotationToWidgetConfigMap.put(curConfig.getAnnotationClass(), curConfig);
}
}