Context Factory

All of the implementation details are stored in a set of context APIs. For example, Admin Context is a context API that contains implementation details related to the administration business context. All of these context APIs must be known to the glue code so that the context AI with the correct implementation can be selected.

Context Factory is a set of resources whose primary role is to make all of the context APIs available within the glue code. Context Factory consists of two Gosu classes: ContextFactory (an interface) and ContextFactoryImpl (an implementation of the interface). All of the context API interfaces are injected into ContextFactoryImpl.


ContextFactory is injected into every Context API.