gpt4 book ai didi

org.springframework.batch.core.repository.dao.XStreamExecutionContextStringSerializer.()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-24 03:59:05 25 4
gpt4 key购买 nike

本文整理了Java中org.springframework.batch.core.repository.dao.XStreamExecutionContextStringSerializer.<init>()方法的一些代码示例,展示了XStreamExecutionContextStringSerializer.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XStreamExecutionContextStringSerializer.<init>()方法的具体详情如下:
包路径:org.springframework.batch.core.repository.dao.XStreamExecutionContextStringSerializer
类名称:XStreamExecutionContextStringSerializer
方法名:<init>

XStreamExecutionContextStringSerializer.<init>介绍

暂无

代码示例

代码示例来源:origin: spring-projects/spring-batch

@Before
public void onSetUp() throws Exception {
  @SuppressWarnings("deprecation")
  XStreamExecutionContextStringSerializer serializerDeserializer = new XStreamExecutionContextStringSerializer();
  (serializerDeserializer).afterPropertiesSet();
  serializer = serializerDeserializer;
}

代码示例来源:origin: org.springframework.batch.core/org.motechproject.org.springframework.batch.core

@Override
public void afterPropertiesSet() throws Exception {
  Assert.notNull(dataSource, "DataSource must not be null.");
  if (jdbcOperations == null) {
    jdbcOperations = new JdbcTemplate(dataSource);	
  }    
  if(serializer == null) {
    XStreamExecutionContextStringSerializer defaultSerializer = new XStreamExecutionContextStringSerializer();
    defaultSerializer.afterPropertiesSet();
    serializer = defaultSerializer;
  }
}

代码示例来源:origin: org.springframework.batch/org.springframework.batch.core

@Override
public void afterPropertiesSet() throws Exception {
  super.afterPropertiesSet();
  serializer = new XStreamExecutionContextStringSerializer();
  ((XStreamExecutionContextStringSerializer) serializer).afterPropertiesSet();
}

代码示例来源:origin: spring-projects/spring-batch-admin

public void afterPropertiesSet() throws Exception {
  Assert.notNull(dataSource, "DataSource must not be null.");
  Assert.notNull(jobRepository, "JobRepository must not be null.");
  Assert.notNull(jobLocator, "JobLocator must not be null.");
  Assert.notNull(jobLauncher, "JobLauncher must not be null.");
  Assert.notNull(jobExplorer, "JobExplorer must not be null.");
  jdbcTemplate = new JdbcTemplate(dataSource);
  if (incrementerFactory == null) {
    incrementerFactory = new DefaultDataFieldMaxValueIncrementerFactory(dataSource);
  }
  if (databaseType == null) {
    databaseType = DatabaseType.fromMetaData(dataSource).name();
    logger.info("No database type set, using meta data indicating: " + databaseType);
  }
  if (lobHandler == null) {
    lobHandler = new DefaultLobHandler();
  }
  if (serializer == null) {
    XStreamExecutionContextStringSerializer defaultSerializer = new XStreamExecutionContextStringSerializer();
    defaultSerializer.afterPropertiesSet();
    serializer = defaultSerializer;
  }
  Assert.isTrue(incrementerFactory.isSupportedIncrementerType(databaseType), "'" + databaseType
      + "' is an unsupported database type.  The supported database types are "
      + StringUtils.arrayToCommaDelimitedString(incrementerFactory.getSupportedIncrementerTypes()));
}

代码示例来源:origin: org.springframework.batch.core/org.motechproject.org.springframework.batch.core

@Override
public void afterPropertiesSet() throws Exception {
  Assert.notNull(dataSource, "DataSource must not be null.");
  if (jdbcOperations == null) {
    jdbcOperations = new JdbcTemplate(dataSource);	
  }        
  if (incrementerFactory == null) {
    incrementerFactory = new DefaultDataFieldMaxValueIncrementerFactory(dataSource);
  }
  if (databaseType == null) {
    databaseType = DatabaseType.fromMetaData(dataSource).name();
    logger.info("No database type set, using meta data indicating: " + databaseType);
  }
  if (lobHandler == null && databaseType.equalsIgnoreCase(DatabaseType.ORACLE.toString())) {
    lobHandler = new OracleLobHandler();
  }
  if(serializer == null) {
    XStreamExecutionContextStringSerializer defaultSerializer = new XStreamExecutionContextStringSerializer();
    defaultSerializer.afterPropertiesSet();
    serializer = defaultSerializer;
  }
  Assert.isTrue(incrementerFactory.isSupportedIncrementerType(databaseType), "'" + databaseType
      + "' is an unsupported database type.  The supported database types are "
      + StringUtils.arrayToCommaDelimitedString(incrementerFactory.getSupportedIncrementerTypes()));
  if(lobType != null) {
    Assert.isTrue(isValidTypes(lobType), "lobType must be a value from the java.sql.Types class");
  }
  super.afterPropertiesSet();
}

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com