* @param clazz The annotation class from which to get the ComponentConfig
* @return The array of Component
* @throws Exception
*/
Component[] annotationToComponents(Class<?> clazz) throws Exception {
ComponentConfig annotation = clazz.getAnnotation(ComponentConfig.class);
if (annotation != null) {
return new Component[] { toComponentConfig(annotation, clazz) };
}
ComponentConfigs annotations = clazz.getAnnotation(ComponentConfigs.class);