public abstract class AbstractMigrator<TFROM extends ScmSyncConfigurationPOJO,TTO extends ScmSyncConfigurationPOJO> extends Object implements ScmSyncConfigurationDataMigrator<TFROM,TTO>
Modifier and Type | Field and Description |
---|---|
static String |
SCM_CLASS_ATTRIBUTE |
static String |
SCM_COMMIT_MESSAGE_PATTERN |
static String |
SCM_DISPLAY_STATUS |
static String |
SCM_MANUAL_INCLUDES |
static String |
SCM_NO_USER_COMMIT_MESSAGE |
static String |
SCM_REPOSITORY_URL_TAG |
static String |
SCM_TAG |
Constructor and Description |
---|
AbstractMigrator() |
Modifier and Type | Method and Description |
---|---|
protected abstract TTO |
createMigratedPojo() |
protected abstract SCM |
createSCMFrom(String clazz,
String content) |
TTO |
migrate(TFROM pojo) |
protected SCM |
migrateScm(SCM scm) |
protected String |
migrateScmRepositoryUrl(String scmRepositoryUrl) |
TTO |
readScmSyncConfigurationPOJO(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context) |
public static final String SCM_REPOSITORY_URL_TAG
public static final String SCM_TAG
public static final String SCM_CLASS_ATTRIBUTE
public static final String SCM_NO_USER_COMMIT_MESSAGE
public static final String SCM_DISPLAY_STATUS
public static final String SCM_COMMIT_MESSAGE_PATTERN
public static final String SCM_MANUAL_INCLUDES
public TTO migrate(TFROM pojo)
migrate
in interface ScmSyncConfigurationDataMigrator<TFROM extends ScmSyncConfigurationPOJO,TTO extends ScmSyncConfigurationPOJO>
public TTO readScmSyncConfigurationPOJO(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
readScmSyncConfigurationPOJO
in interface ScmSyncConfigurationDataMigrator<TFROM extends ScmSyncConfigurationPOJO,TTO extends ScmSyncConfigurationPOJO>
protected abstract TTO createMigratedPojo()
Copyright © 2004-2016. All Rights Reserved.