Class CorsExtensionProvider
java.lang.Object
io.helidon.declarative.codegen.cors.CorsExtensionProvider
- All Implemented Interfaces:
CodegenProvider, RegistryCodegenExtensionProvider
Java
ServiceLoader provider implementation for
RegistryCodegenExtensionProvider that generates required
services to handle declarative CORS.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(RegistryCodegenContext codegenContext) Create a new extension based on the context.Annotations that are supported.Inherited annotations that are supported.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CodegenProvider
supportedAnnotationPackages, supportedOptionsModifier and TypeMethodDescriptionSupported packages of annotations.Configuration options that are supported.Methods inherited from interface RegistryCodegenExtensionProvider
supportsFactoryProvidedServiceContractAnnotations, supportsServiceContractAnnotationsModifier and TypeMethodDescriptiondefault booleanWhether this extension should also process factory services whose provided service contracts contain annotations supported by this extension.default booleanWhether this extension should also process services whose service contracts contain annotations supported by this extension.
-
Constructor Details
-
CorsExtensionProvider
public CorsExtensionProvider()Required public constructor forServiceLoader.
-
-
Method Details
-
supportedAnnotations
Description copied from interface:CodegenProviderAnnotations that are supported.- Specified by:
supportedAnnotationsin interfaceCodegenProvider- Returns:
- set of annotation types
- See Also:
-
supportedMetaAnnotations
Description copied from interface:CodegenProviderInherited annotations that are supported. If an annotation is annotated with this "meta" annotation, it is considered supported.- Specified by:
supportedMetaAnnotationsin interfaceCodegenProvider- Returns:
- set of meta annotation types
- See Also:
-
create
Description copied from interface:RegistryCodegenExtensionProviderCreate a new extension based on the context.- Specified by:
createin interfaceRegistryCodegenExtensionProvider- Parameters:
codegenContext- injection code generation context- Returns:
- a new extension
-