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
ConstructorsModifierConstructorDescriptionprotected
AbstractRepositoryHandler
(ConfigurationStoreFactory storeFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Returns theImportHandler
for the repository type of this handler.void
init
(SCMContextProvider context) This method is called when the SCM manager is started.boolean
Returns true if the plugin is configured and enabled.void
void
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface sonia.scm.HandlerBase
create, delete, modify
Methods inherited from interface sonia.scm.repository.RepositoryHandler
getType, getVersionInformation
-
Field Details
-
baseDirectory
-
config
-
store
-
-
Constructor Details
-
AbstractRepositoryHandler
-
-
Method Details
-
getConfigClass
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
init
Description copied from interface:Initable
This method is called when the SCM manager is started. -
loadConfig
public void loadConfig() -
storeConfig
public void storeConfig() -
getConfig
-
getImportHandler
Description copied from interface:RepositoryHandler
Returns theImportHandler
for the repository type of this handler.- Specified by:
getImportHandler
in interfaceRepositoryHandler
- Returns:
ImportHandler
for the repository type of this handler
-
isConfigured
public boolean isConfigured()Returns true if the plugin is configured and enabled.- Specified by:
isConfigured
in interfaceHandler<C extends RepositoryConfig>
-
setConfig
-