Package sonia.scm.repository
Class AbstractRepositoryHandler<C extends RepositoryConfig>
java.lang.Object
sonia.scm.repository.AbstractRepositoryHandler<C>
- All Implemented Interfaces:
Closeable,AutoCloseable,Handler<Repository>,HandlerBase<Repository>,Initable,RepositoryHandler
- Direct Known Subclasses:
AbstractSimpleRepositoryHandler
public abstract class AbstractRepositoryHandler<C extends RepositoryConfig>
extends Object
implements RepositoryHandler
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractRepositoryHandler(ConfigurationStoreFactory storeFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Returns theImportHandlerfor the repository type of this handler.voidinit(SCMContextProvider context) This method is called when the SCM manager is started.booleanReturns true if the plugin is configured and enabled.voidvoidvoidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface sonia.scm.HandlerBase
create, delete, modifyMethods inherited from interface sonia.scm.repository.RepositoryHandler
getType, getVersionInformation
-
Field Details
-
baseDirectory
-
config
-
store
-
-
Constructor Details
-
AbstractRepositoryHandler
-
-
Method Details
-
getConfigClass
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
init
Description copied from interface:InitableThis method is called when the SCM manager is started. -
loadConfig
public void loadConfig() -
storeConfig
public void storeConfig() -
getConfig
-
getImportHandler
Description copied from interface:RepositoryHandlerReturns theImportHandlerfor the repository type of this handler.- Specified by:
getImportHandlerin interfaceRepositoryHandler- Returns:
ImportHandlerfor the repository type of this handler
-
isConfigured
public boolean isConfigured()Returns true if the plugin is configured and enabled.- Specified by:
isConfiguredin interfaceHandler<C extends RepositoryConfig>
-
setConfig
-