mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 00:45:44 +01:00
48 lines
825 B
Java
48 lines
825 B
Java
/*
|
|
* To change this template, choose Tools | Templates
|
|
* and open the template in the editor.
|
|
*/
|
|
|
|
|
|
|
|
package sonia.scm.web;
|
|
|
|
/**
|
|
*
|
|
* @author Sebastian Sdorra
|
|
*/
|
|
public class HgWebPlugin implements ScmWebPlugin
|
|
{
|
|
|
|
/** Field description */
|
|
public static final String SCRIPT = "/sonia/scm/hg.config.js";
|
|
|
|
//~--- methods --------------------------------------------------------------
|
|
|
|
/**
|
|
* Method description
|
|
*
|
|
*
|
|
* @param context
|
|
*/
|
|
@Override
|
|
public void contextDestroyed(ScmWebPluginContext context)
|
|
{
|
|
|
|
// do nothing
|
|
}
|
|
|
|
/**
|
|
* Method description
|
|
*
|
|
*
|
|
* @param context
|
|
*/
|
|
@Override
|
|
public void contextInitialized(ScmWebPluginContext context)
|
|
{
|
|
context.addScriptResource(new ClasspathWebResource(SCRIPT));
|
|
context.addInjectModule(new HgServletModule());
|
|
}
|
|
}
|