Skip to content

Introduce annotation for removing functional beans from being considered for function registry #418

Closed
@elefeint

Description

@elefeint

Consider introducing a new annotation, @DisableFunctionalAutodiscovery, that autoconfiguration providers could use to prevent infrastructural functional beans from being surfaced in the function registry.

Function autodiscovery is very convenient for user applications, but could lead to surprising behavior, in which Spring Cloud Function autodiscovery stops working when an unrelated dependency is added to the project. Spring projects that introduce conflicting autoconfiguration are best positioned to exclude the problematic beans by pulling Spring Cloud Function as a compile-time dependency and adding the @DisableFunctionalAutodiscovery annotation. And we'd love to keep developers from spending time on unnecessary troubleshooting caused by our projects 😩 .

Related issues: #409, #417, spring-attic/spring-cloud-gcp#1997.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions