Class PythonElementAnnotationMetadataFactory

java.lang.Object
io.micronaut.inject.ast.annotation.AbstractElementAnnotationMetadataFactory<ElementDef, DecoratorDef>
io.micronaut.python.processing.annotation.PythonElementAnnotationMetadataFactory
All Implemented Interfaces:
ElementAnnotationMetadataFactory

public class PythonElementAnnotationMetadataFactory extends AbstractElementAnnotationMetadataFactory<ElementDef, DecoratorDef>
Factory for creating and managing annotation metadata for Python elements.

This class extends AbstractElementAnnotationMetadataFactory and provides support for reading and building annotation metadata based on Python decorators. The factory delegates annotation processing logic to PythonAnnotationMetadataBuilder.

The metadata factory may be used in either a read-only or mutable context, depending on how it is constructed. To enforce immutability, use readOnly() to obtain a read-only factory.

Typical usage:

    PythonAnnotationMetadataBuilder builder = ...;
    PythonElementAnnotationMetadataFactory factory =
        new PythonElementAnnotationMetadataFactory(false, builder);
    ElementAnnotationMetadata metadata = factory.build(someElement);
Since:
5.2.0