use of org.mule.runtime.module.extension.internal.resources.validator.ExportedPackagesValidator in project mule by mulesoft.
the class ExtensionResourcesGeneratorAnnotationProcessor method getExtensionModelLoader.
@Override
protected ExtensionModelLoader getExtensionModelLoader() {
return new DefaultJavaExtensionModelLoader() {
@Override
protected void configureContextBeforeDeclaration(ExtensionLoadingContext context) {
super.configureContextBeforeDeclaration(context);
context.addCustomDeclarationEnricher(new DescriptionDeclarationEnricher());
context.addCustomValidator(new ExportedPackagesValidator());
}
};
}
Aggregations