event.setCsrfCheck(annotation.csrfCheck());
return event;
}
private EventInterceptor toEventInterceptorConfig(EventInterceptorConfig annotation) {
EventInterceptor eventInterceptor = new EventInterceptor();
eventInterceptor.setType(annotation.type().getName());
ArrayList<String> list = new ArrayList<String>();
Collections.addAll(list, annotation.interceptors());
eventInterceptor.setInterceptors(list);
eventInterceptor.setInitParams(toInitParams(annotation.initParams()));
return eventInterceptor;
}