com.atlassian.fisheye.plugins.scm.utils
Class ConfigurableSCMModule<T extends SimpleConfiguration>

java.lang.Object
  extended by com.atlassian.fisheye.plugins.scm.utils.ConfigurableSCMModule<T>
All Implemented Interfaces:
SCMModule, Configurable<java.util.List<T>>

public abstract class ConfigurableSCMModule<T extends SimpleConfiguration>
extends java.lang.Object
implements SCMModule, Configurable<java.util.List<T>>

An SCMSource which supports a simple configuration


Constructor Summary
protected ConfigurableSCMModule(ModuleConfigurationStore moduleConfigurationStore)
           
 
Method Summary
protected  void configChanged()
           
protected abstract  SCMRepository createRepository(T config)
           
 java.util.List<T> getConfiguration()
           
 com.atlassian.plugin.ModuleDescriptor getModuleDescriptor()
           
 java.util.Collection<SCMRepository> getRepositories()
           
protected  com.thoughtworks.xstream.XStream getXStream()
           
 void setConfiguration(java.util.List<T> config)
           
 void setModuleDescriptor(com.atlassian.plugin.ModuleDescriptor moduleDescriptor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.crucible.scm.SCMModule
getName
 

Constructor Detail

ConfigurableSCMModule

protected ConfigurableSCMModule(ModuleConfigurationStore moduleConfigurationStore)
Method Detail

getXStream

protected com.thoughtworks.xstream.XStream getXStream()

setModuleDescriptor

public void setModuleDescriptor(com.atlassian.plugin.ModuleDescriptor moduleDescriptor)
Specified by:
setModuleDescriptor in interface SCMModule

getModuleDescriptor

public com.atlassian.plugin.ModuleDescriptor getModuleDescriptor()
Specified by:
getModuleDescriptor in interface SCMModule

getConfiguration

public java.util.List<T> getConfiguration()
Specified by:
getConfiguration in interface Configurable<java.util.List<T extends SimpleConfiguration>>
Returns:
a List of repository configurations.

setConfiguration

public void setConfiguration(java.util.List<T> config)
Specified by:
setConfiguration in interface Configurable<java.util.List<T extends SimpleConfiguration>>

getRepositories

public java.util.Collection<SCMRepository> getRepositories()
Specified by:
getRepositories in interface SCMModule

createRepository

protected abstract SCMRepository createRepository(T config)

configChanged

protected void configChanged()