improve ScmWebPlugin api

This commit is contained in:
Sebastian Sdorra
2010-09-26 16:16:38 +02:00
parent 16052aeb4b
commit 2d666f5b14
3 changed files with 45 additions and 11 deletions

View File

@@ -17,6 +17,8 @@ import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
import javax.servlet.ServletContext;
/**
*
* @author Sebastian Sdorra
@@ -24,6 +26,19 @@ import java.util.Set;
public class ScmWebPluginContext
{
/**
* Constructs ...
*
*
* @param servletContext
*/
public ScmWebPluginContext(ServletContext servletContext)
{
this.servletContext = servletContext;
}
//~--- methods --------------------------------------------------------------
/**
* Method description
*
@@ -92,6 +107,17 @@ public class ScmWebPluginContext
return scriptResources;
}
/**
* Method description
*
*
* @return
*/
public ServletContext getServletContext()
{
return servletContext;
}
//~--- fields ---------------------------------------------------------------
/** Field description */
@@ -99,4 +125,7 @@ public class ScmWebPluginContext
/** Field description */
private Set<Module> injectModules = new HashSet<Module>();
/** Field description */
private ServletContext servletContext;
}