use of org.talend.sdk.component.maven.api.Audience in project component-runtime by Talend.
the class AudienceAwareMojo method getAudience.
private Optional<Audience> getAudience() {
Class<?> current = getClass();
while (current != null) {
Audience annotation = current.getAnnotation(Audience.class);
if (annotation != null) {
return of(annotation);
}
current = current.getSuperclass();
}
return empty();
}
Aggregations