mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 16:05:44 +01:00
added some javadoc
This commit is contained in:
@@ -42,6 +42,9 @@ import org.slf4j.Logger;
|
|||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Injection provider for {@link HgContext}.
|
||||||
|
* This provider returns an instance {@link HgContext} from request scope, if no {@link HgContext} could be found in
|
||||||
|
* request scope (mostly because the scope is not available) a new {@link HgContext} gets returned.
|
||||||
*
|
*
|
||||||
* @author Sebastian Sdorra
|
* @author Sebastian Sdorra
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -2,10 +2,13 @@ package sonia.scm.repository;
|
|||||||
|
|
||||||
import com.google.inject.servlet.RequestScoped;
|
import com.google.inject.servlet.RequestScoped;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Holds an instance of {@link HgContext} in the request scope.
|
||||||
|
*/
|
||||||
@RequestScoped
|
@RequestScoped
|
||||||
public class HgContextRequestStore {
|
public class HgContextRequestStore {
|
||||||
|
|
||||||
private HgContext context = new HgContext();
|
private final HgContext context = new HgContext();
|
||||||
|
|
||||||
public HgContext get() {
|
public HgContext get() {
|
||||||
return context;
|
return context;
|
||||||
|
|||||||
Reference in New Issue
Block a user