Search in sources :

Example 1 with ExportedPackagesValidator

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());
        }
    };
}
Also used : ExportedPackagesValidator(org.mule.runtime.module.extension.internal.resources.validator.ExportedPackagesValidator) ExtensionLoadingContext(org.mule.runtime.extension.api.loader.ExtensionLoadingContext) DescriptionDeclarationEnricher(org.mule.runtime.module.extension.internal.capability.xml.description.DescriptionDeclarationEnricher) DefaultJavaExtensionModelLoader(org.mule.runtime.module.extension.api.loader.java.DefaultJavaExtensionModelLoader)

Aggregations

ExtensionLoadingContext (org.mule.runtime.extension.api.loader.ExtensionLoadingContext)1 DefaultJavaExtensionModelLoader (org.mule.runtime.module.extension.api.loader.java.DefaultJavaExtensionModelLoader)1 DescriptionDeclarationEnricher (org.mule.runtime.module.extension.internal.capability.xml.description.DescriptionDeclarationEnricher)1 ExportedPackagesValidator (org.mule.runtime.module.extension.internal.resources.validator.ExportedPackagesValidator)1