io.vertx.serviceproxy.generator.model.ProxyModelProvider Maven / Gradle / Ivy
package io.vertx.serviceproxy.generator.model;
import io.vertx.codegen.Model;
import io.vertx.codegen.ModelProvider;
import io.vertx.codegen.annotations.ProxyGen;
import io.vertx.codegen.type.TypeMirrorFactory;
import javax.annotation.processing.ProcessingEnvironment;
import javax.lang.model.element.TypeElement;
public class ProxyModelProvider implements ModelProvider {
@Override
public Model getModel(ProcessingEnvironment env, TypeMirrorFactory typeFactory, TypeElement elt) {
if (elt.getAnnotation(ProxyGen.class) != null) {
ProxyModel model = new ProxyModel(env, typeFactory, elt);
return model;
} else {
return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy