All Downloads are FREE. Search and download functionalities are using the official Maven repository.

public.javadoc.org.spincast.core.exchange.DefaultRequestContextDefault.html Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version






DefaultRequestContextDefault (org.spincast:spincast-framework 1.0.0 API)












org.spincast.core.exchange

Class DefaultRequestContextDefault

  • All Implemented Interfaces:
    DefaultRequestContext, RequestContext<DefaultRequestContext>


    public class DefaultRequestContextDefault
    extends RequestContextBase<DefaultRequestContext>
    implements DefaultRequestContext
    The default implementation of the request context. We leave this implementation in the "spincast-core" artifact instead of the "spincast-default" artifact because we want to be able to use the SpincastCoreGuiceModule as is when creating a Guice context. For example : Injector guice = Guice.createInjector(new SpincastCoreGuiceModule(args), new AnotherModule()) So SpincastCoreGuiceModule can't be abstract and therefore we have to provide this method implementation : protected Key<?> getRequestContextImplementationClass() { return Key.get(DefaultRequestContext.class); } Some may want to start their application fron the "spincast-core" artifact but with the default request context.

Copyright © 2019. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy