Class RootContext

java.lang.Object
crow.game.examples.pingpong.proto.RootContext
All Implemented Interfaces:
Context

public class RootContext extends Object implements Context
The root context is the context implementation for the Ping/Pong server and defines the packet version and provides the PacketHandlers.

More complicated client/server implementations could use spring or guice or SPI to lookup packet POJOs and PacketHandlers but this one is too simple to justify that level of work.

Ideally we will have a common server or client module that implements a Context that does use guice or spring and then that module is just marked as "requiring injection library".