Search in sources :

Example 1 with Audience

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();
}
Also used : Audience(org.talend.sdk.component.maven.api.Audience)

Aggregations

Audience (org.talend.sdk.component.maven.api.Audience)1