mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 16:35:45 +01:00
improve plugin structure
This commit is contained in:
@@ -47,13 +47,13 @@ public class HgConfigResource
|
||||
* Constructs ...
|
||||
*
|
||||
*
|
||||
* @param repositoryManager
|
||||
*
|
||||
* @param handler
|
||||
*/
|
||||
@Inject
|
||||
public HgConfigResource(RepositoryManager repositoryManager)
|
||||
public HgConfigResource(HgRepositoryHandler handler)
|
||||
{
|
||||
handler = (HgRepositoryHandler) repositoryManager.getHandler(
|
||||
HgRepositoryHandler.TYPE_NAME);
|
||||
this.handler = handler;
|
||||
}
|
||||
|
||||
//~--- get methods ----------------------------------------------------------
|
||||
|
||||
@@ -9,6 +9,8 @@ package sonia.scm.repository;
|
||||
|
||||
//~--- non-JDK imports --------------------------------------------------------
|
||||
|
||||
import com.google.inject.Singleton;
|
||||
|
||||
import sonia.scm.ConfigurationException;
|
||||
import sonia.scm.io.CommandResult;
|
||||
import sonia.scm.io.ExtendedCommand;
|
||||
@@ -37,6 +39,7 @@ import java.util.logging.Logger;
|
||||
*
|
||||
* @author Sebastian Sdorra
|
||||
*/
|
||||
@Singleton
|
||||
public class HgRepositoryHandler extends AbstractRepositoryHandler<HgConfig>
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user