Skip to content

Support for meta annotations in AutoConfigureAnnotationProcessor #13996

@filiphr

Description

@filiphr

I've been looking in to using the autoconfigure-processor for our auto configuration. However, I noticed that it does not work when the @ConditionalOnClass annotations are given through a meta annotation.

In our projects we have something like:

@ConditionalOnClass(name = {
    "com.example.Class1",
    "com.example.Class2"
})
@ConditionalOnProperty(prefix = "com.example", name = "enabled", havingValue = "true", matchIfMissing = true)
public @interface ConditionalOnOurMeta {

}

If you are interested in such functionality I can have a look into the AutoConfigureAnnotationProcessor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: declinedA suggestion or change that we don't feel we should currently apply

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions