Java 类org.openide.util.lookup.ServiceProvider 实例源码

项目:incubator-netbeans    文件:ServiceProviderProcessor.java   
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());
    }
}
项目:incubator-netbeans    文件:ServiceProviderProcessor.java   
public @Override Set<String> getSupportedAnnotationTypes() {
    return new HashSet<String>(Arrays.asList(
        ServiceProvider.class.getCanonicalName(),
        ServiceProviders.class.getCanonicalName()
    ));
}