Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rules do not scan dependency injection without a handler #35

Open
maschnetwork opened this issue Mar 19, 2024 · 0 comments
Open

Rules do not scan dependency injection without a handler #35

maschnetwork opened this issue Mar 19, 2024 · 0 comments

Comments

@maschnetwork
Copy link

Problem: You can run standard Spring Boot applications via the Serverless Java Container or the Lambda Web Adapter. In that case, no specific handler interface needs to be implemented. Currently the SnapStart rules would therefore not recognize any violation of the rules:

public class UnicornControllerHandler {

    private final UnicornService unicornService;
    private final UUID uuid;
    private static final Logger logger = LoggerFactory.getLogger(UnicornControllerHandler.class);

    public UnicornControllerHandler(UnicornService unicornService) {
        this.unicornService = unicornService;
        uuid = UUID.randomUUID();
    }
}

This is somehow related to #24 but the checks seem to only apply when the class and the method have a specific name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant