Skip to content

Make SnakeTimer a bean, rather than a class with static fields methods #2

@Glamdring

Description

@Glamdring

Wouldn't it be better if https://github.com/rstoyanchev/spring-websocket-test/blob/master/src/main/java/org/springframework/samples/websocket/snake/SnakeTimer.java is a bean, injected into the handler, rather than a class with static fields and methods?

In reality, one may need to inject other beans into that one, make use of proxies, etc. so it would be nice for an example to present it as a spring bean.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions