Examples of afterPropertiesSet()


Examples of org.springframework.integration.handler.LoggingHandler.afterPropertiesSet()

            LoggingHandler wireTapLogger = new LoggingHandler("TRACE");
            wireTapLogger.setBeanName("OutputWireTapper");
            wireTapLogger.setBeanFactory(context.getBeanFactory());
            wireTapLogger.setLoggerName("wiretap");
            wireTapLogger.setShouldLogFullMessage(true);
            wireTapLogger.afterPropertiesSet();
            wireTapChannel.subscribe(wireTapLogger);

            List<ChannelInterceptor> ints = new ArrayList<ChannelInterceptor>();
            WireTap wt = new WireTap(wireTapChannel);
            ints.add(wt);
View Full Code Here

Examples of org.springframework.integration.redis.outbound.RedisPublishingMessageHandler.afterPropertiesSet()

  public void testWithDefaultSerializer() throws Exception {
    setupListener(new StringRedisSerializer());
    final RedisPublishingMessageHandler handler = new RedisPublishingMessageHandler(connectionFactory);
    handler.setBeanFactory(BusTestUtils.MOCK_BF);
    handler.setTopic(TOPIC);
    handler.afterPropertiesSet();
    for (int i = 0; i < NUM_MESSAGES; i++) {
      handler.handleMessage(MessageBuilder.withPayload("test-" + i).build());
    }
    latch.await(3, TimeUnit.SECONDS);
    assertEquals(0, latch.getCount());
View Full Code Here

Examples of org.springframework.integration.redis.outbound.RedisQueueOutboundChannelAdapter.afterPropertiesSet()

    RedisConnectionFactory connectionFactory = redisAvailableRule.getResource();
    RedisQueueOutboundChannelAdapter adapter = new RedisQueueOutboundChannelAdapter(deployerQueue,
        connectionFactory);
    adapter.setBeanFactory(BusTestUtils.MOCK_BF);
    adapter.setExtractPayload(false);
    adapter.afterPropertiesSet();
    ModuleDescriptor request = new ModuleDescriptor.Builder()
        .setGroup("test")
        .setType(ModuleType.processor)
        .setModuleName("filter")
        .setIndex(0)
View Full Code Here

Examples of org.springframework.integration.smpp.session.SmppSessionFactoryBean.afterPropertiesSet()

    SmppSessionFactoryBean smppSessionFactoryBean = new SmppSessionFactoryBean();
    smppSessionFactoryBean.setSystemId(this.systemId);
    smppSessionFactoryBean.setPort(this.port);
    smppSessionFactoryBean.setPassword(this.password);
    smppSessionFactoryBean.setHost(this.host);
    smppSessionFactoryBean.afterPropertiesSet();

    ExtendedSmppSession extendedSmppSession = smppSessionFactoryBean.getObject();
    Assert.assertTrue(extendedSmppSession instanceof ExtendedSmppSessionAdaptingDelegate);

    ExtendedSmppSessionAdaptingDelegate es = (ExtendedSmppSessionAdaptingDelegate) extendedSmppSession;
View Full Code Here

Examples of org.springframework.integration.xquery.core.XQueryExecutor.afterPropertiesSet()

   * @return
   */
  private XQueryExecutor getExecutor(String xQuery) {
    XQueryExecutor executor = new XQueryExecutor();
    executor.setXQuery(xQuery);
    executor.afterPropertiesSet();
    return executor;
  }

}
View Full Code Here

Examples of org.springframework.jdbc.core.JdbcTemplate.afterPropertiesSet()

        "LEFT JOIN up_user upu ON upu.user_id = upup.user_id";

    @Required
    public void setDataSource(DataSource dataSource) {
        final JdbcTemplate jdbcTemplate = new JdbcTemplate(dataSource);
        jdbcTemplate.afterPropertiesSet();
        this.jdbcOperations = jdbcTemplate;
    }

    @Override
    public Iterable<? extends IPortalData> apply(IPortalDataType input) {
View Full Code Here

Examples of org.springframework.jdbc.datasource.DataSourceTransactionManager.afterPropertiesSet()

    @Bean
    public PlatformTransactionManager transactionManager() throws SQLException {

      DataSourceTransactionManager txmgr = new DataSourceTransactionManager();
      txmgr.setDataSource(dataSource());
      txmgr.afterPropertiesSet();

      return txmgr;
    }

    @Bean
View Full Code Here

Examples of org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactoryBean.afterPropertiesSet()

  public DataSource datasource() {
    EmbeddedDatabaseFactoryBean bean = new EmbeddedDatabaseFactoryBean();
    ResourceDatabasePopulator databasePopulator = new ResourceDatabasePopulator();
    databasePopulator.addScript(new ClassPathResource("hibernate/config/java/schema.sql"));
    bean.setDatabasePopulator(databasePopulator);
    bean.afterPropertiesSet(); // necessary because
                  // EmbeddedDatabaseFactoryBean is a
                  // FactoryBean
    return bean.getObject();
  }
View Full Code Here

Examples of org.springframework.jdbc.datasource.init.DataSourceInitializer.afterPropertiesSet()

    ResourceDatabasePopulator databasePopulator = new ResourceDatabasePopulator();
    databasePopulator.addScript(new ClassPathResource("test-data.sql", this.getClass()));
    DataSourceInitializer initializer = new DataSourceInitializer();
    initializer.setDataSource(dataSource);
    initializer.setDatabasePopulator(databasePopulator);
    initializer.afterPropertiesSet();
  }

  private EntityManagerFactory getEntityManagerFactory(DataSource dataSource) throws Exception {
    LocalContainerEntityManagerFactoryBean factory = new LocalContainerEntityManagerFactoryBean();
    factory.setDataSource(dataSource);
View Full Code Here

Examples of org.springframework.jdbc.datasource.lookup.IsolationLevelDataSourceRouter.afterPropertiesSet()

    else {
      targetDataSources.put("ISOLATION_REPEATABLE_READ", ds2);
      dsToUse.setDefaultTargetDataSource(ds1);
    }
    dsToUse.setTargetDataSources(targetDataSources);
    dsToUse.afterPropertiesSet();

    JtaTransactionManager ptm = new JtaTransactionManager(ut);
    ptm.setAllowCustomIsolationLevels(true);

    TransactionTemplate tt = new TransactionTemplate(ptm);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.