Skip to content

Convert the @ComponentScan in @FrameworkControllerScan configuration to an ImportBeanDefinitionRegistrar #2

@phillipuniverse

Description

@phillipuniverse

Since we are hijacking @ComponentScan to utilize @FrameworkControllerScan, this prevents a user from using it alongside any other @ComponentScan, including an @SpringBootApplication class.

Instead, a user is required to create a static inner class or @Import another @Configuration class that contains the @FrameworkControllerScan.

This represents work towards dynamically registering beans via an ImportBeanDefinitionRegistrar. Some work has already been done towards this effort at import-registrar. The challenge is that we need to build our own BeanDefinition from the class itself and don't have a lot of examples to rely on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions