Search in sources :

Example 1 with AnnotationProcessor

use of org.apache.geronimo.microprofile.openapi.impl.processor.AnnotationProcessor in project tomee by apache.

the class TomEEOpenAPIExtension method init.

void init(@Observes final BeforeBeanDiscovery beforeBeanDiscovery) {
    config = GeronimoOpenAPIConfig.create();
    processor = new AnnotationProcessor(config, loadNamingStrategy(config), null);
    skipScan = Boolean.parseBoolean(config.read(OASConfig.SCAN_DISABLE, "false"));
    classes = getConfigCollection(OASConfig.SCAN_CLASSES);
    packages = getConfigCollection(OASConfig.SCAN_PACKAGES);
    excludePackages = getConfigCollection(OASConfig.SCAN_EXCLUDE_PACKAGES);
    excludeClasses = getConfigCollection(OASConfig.SCAN_EXCLUDE_CLASSES);
    try {
        Yaml.getObjectMapper();
        jacksonIsPresent = true;
    } catch (final Error | RuntimeException e) {
    // no-op
    }
}
Also used : AnnotationProcessor(org.apache.geronimo.microprofile.openapi.impl.processor.AnnotationProcessor)

Aggregations

AnnotationProcessor (org.apache.geronimo.microprofile.openapi.impl.processor.AnnotationProcessor)1