Class<?> type = resource.getType();
return type.isAnnotationPresent(Component.class);
}
public static String getLogicName(Method method) {
Logic logic = method.getAnnotation(Logic.class);
if (logic == null || logic.value().length == 0) {
return method.getName();
}
return logic.value()[0];
}