/** * Creates and registers a component definition for a class by scanning the class and its * superclasses for method annotations. * * @param clazz Class to scan. */ @Override protected void doScanClass(Class<BaseComponent> clazz) { if (log.isDebugEnabled()) { log.debug("Processing @Component annotation for class " + clazz); } ComponentDefinition def = new ComponentDefinition(clazz); scanMethods(def, clazz, false); scanMethods(def, def.getFactoryClass(), true); ComponentRegistry.getInstance().register(def); }
scanMethods(def, clazz.getSuperclass(), factoryMethods);