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

net.contextfw.web.application.internal.providers.HttpContextProvider Maven / Gradle / Ivy

package net.contextfw.web.application.internal.providers;

import net.contextfw.web.application.HttpContext;
import net.contextfw.web.application.internal.scope.WebApplicationScopedBeans;

import com.google.inject.Key;
import com.google.inject.Provider;

public class HttpContextProvider implements Provider {

    @Override
    public HttpContext get() {
        return (HttpContext) WebApplicationScopedBeans.getCurrentInstance().getBeans().get(Key.get(HttpContext.class));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy