Class RequestContextBaseDeps<R extends RequestContext<R>>

java.lang.Object
org.spincast.core.exchange.RequestContextBaseDeps<R>

public class RequestContextBaseDeps<R extends RequestContext<R>> extends Object
A wrapper object for the dependencies required by RequestContextBase. We inject this wrapper instead of injecting each individual dependency. We do this because the RequestContextBase is made to be extended frequently by developers and :
  • We want it to be easily extended without having to inject too many dependencies in the child class.
  • We want to keep using constructor injection instead of setter and field injection.
  • By using a wrapper, we can add new dependencies to RequestContextBase without breaking the client classes.