mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-28 02:09:09 +01:00
added backend home configuration
This commit is contained in:
@@ -33,8 +33,15 @@
|
||||
|
||||
package sonia.scm.plugin;
|
||||
|
||||
//~--- non-JDK imports --------------------------------------------------------
|
||||
|
||||
import com.google.inject.Inject;
|
||||
import com.google.inject.name.Named;
|
||||
|
||||
//~--- JDK imports ------------------------------------------------------------
|
||||
|
||||
import java.io.File;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@@ -48,8 +55,16 @@ public class DefaultPluginBackend implements PluginBackend
|
||||
/**
|
||||
* Constructs ...
|
||||
*
|
||||
*
|
||||
*
|
||||
* @param baseDirectory
|
||||
*/
|
||||
public DefaultPluginBackend() {}
|
||||
@Inject
|
||||
public DefaultPluginBackend(
|
||||
@Named(ScmBackendModule.DIRECTORY_PROPERTY) File baseDirectory)
|
||||
{
|
||||
this.baseDirectory = baseDirectory;
|
||||
}
|
||||
|
||||
//~--- methods --------------------------------------------------------------
|
||||
|
||||
@@ -67,6 +82,18 @@ public class DefaultPluginBackend implements PluginBackend
|
||||
|
||||
//~--- get methods ----------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public File getBaseDirectory()
|
||||
{
|
||||
return baseDirectory;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
@@ -119,6 +146,9 @@ public class DefaultPluginBackend implements PluginBackend
|
||||
|
||||
//~--- fields ---------------------------------------------------------------
|
||||
|
||||
/** Field description */
|
||||
private File baseDirectory;
|
||||
|
||||
/** Field description */
|
||||
private List<PluginInformation> plugins = new ArrayList<PluginInformation>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user