GrailsCxfEndpoint annotation = getClazz().getAnnotation(GrailsCxfEndpoint.class);
if(annotation != null) {
inInterceptors = setupInterceptorsViaAnnotation("inInterceptors", annotation.inInterceptors());
outInterceptors = setupInterceptorsViaAnnotation("outInterceptors", annotation.outInterceptors());
inFaultInterceptors = setupInterceptorsViaAnnotation("inFaultInterceptors", annotation.inFaultInterceptors());
outFaultInterceptors = setupInterceptorsViaAnnotation("outFaultInterceptors", annotation.outFaultInterceptors());
}
}
protected Set<String> setupInterceptorsViaAnnotation(String name, String[] customInterceptors) {
Set<String> addedInterceptors = new HashSet<String>();