use of org.mule.runtime.extension.api.loader.ExtensionLoadingContext 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());
}
};
}
use of org.mule.runtime.extension.api.loader.ExtensionLoadingContext in project mule by mulesoft.
the class SoapExtensionResourcesGeneratorAnnotationProcessor method getExtensionModelLoader.
@Override
protected ExtensionModelLoader getExtensionModelLoader() {
return new SoapExtensionModelLoader() {
@Override
protected void configureContextBeforeDeclaration(ExtensionLoadingContext context) {
super.configureContextBeforeDeclaration(context);
context.addCustomDeclarationEnricher(new DescriptionDeclarationEnricher());
}
};
}
Aggregations