Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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