mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 08:55:44 +01:00
added scm-web-api
This commit is contained in:
40
scm-web-api/src/main/java/sonia/scm/ScmWebPlugin.java
Normal file
40
scm-web-api/src/main/java/sonia/scm/ScmWebPlugin.java
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
package sonia.scm;
|
||||
|
||||
//~--- non-JDK imports --------------------------------------------------------
|
||||
|
||||
import com.google.inject.Module;
|
||||
|
||||
//~--- JDK imports ------------------------------------------------------------
|
||||
|
||||
import java.io.InputStream;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Sebastian Sdorra
|
||||
*/
|
||||
public interface ScmWebPlugin
|
||||
{
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public Module[] getModules();
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public InputStream getScript();
|
||||
}
|
||||
29
scm-web-api/src/main/java/sonia/scm/ScmWebPluginAdapter.java
Normal file
29
scm-web-api/src/main/java/sonia/scm/ScmWebPluginAdapter.java
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
package sonia.scm;
|
||||
|
||||
import com.google.inject.Module;
|
||||
import java.io.InputStream;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Sebastian Sdorra
|
||||
*/
|
||||
public class ScmWebPluginAdapter implements ScmWebPlugin {
|
||||
|
||||
@Override
|
||||
public Module[] getModules()
|
||||
{
|
||||
return new Module[0];
|
||||
}
|
||||
|
||||
@Override
|
||||
public InputStream getScript()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user