private void register(Element clazz, Class<? extends Annotation> annotation, ServiceProvider svc) { try { svc.service(); assert false; return; } catch (MirroredTypeException e) { register(clazz, annotation, e.getTypeMirror(), svc.path(), svc.position(), svc.supersedes()); } }
public @Override Set<String> getSupportedAnnotationTypes() { return new HashSet<String>(Arrays.asList( ServiceProvider.class.getCanonicalName(), ServiceProviders.class.getCanonicalName() )); }