Examples of afterPropertiesSet()


Examples of org.springframework.cache.support.SimpleCacheManager.afterPropertiesSet()

    List<Cache> caches = new ArrayList<Cache>();
    for (String cacheName : cacheNames) {
      caches.add(new ConcurrentMapCache(cacheName));
    }
    result.setCaches(caches);
    result.afterPropertiesSet();
    return result;
  }


  /**
 
View Full Code Here

Examples of org.springframework.context.support.AbstractXmlApplicationContext.afterPropertiesSet()

   *            <code>null</code>, the default context will be loaded instead.
   */
  public static void main(String[] args) {
    AbstractXmlApplicationContext context = createContext(args);
    context.registerShutdownHook();
    context.afterPropertiesSet();
  }

  private static AbstractXmlApplicationContext createContext(String[] args) {
    if (args != null && args.length > 0)
      return createArgumentContext(args);
View Full Code Here

Examples of org.springframework.data.couchbase.core.convert.MappingCouchbaseConverter.afterPropertiesSet()

    this.eventPublisher = eventPublisher;
  }

  private static CouchbaseConverter getDefaultConverter() {
    final MappingCouchbaseConverter converter = new MappingCouchbaseConverter(new CouchbaseMappingContext());
    converter.afterPropertiesSet();
    return converter;
  }

  private static TranslationService getDefaultTranslationService() {
    final JacksonTranslationService jacksonTranslationService = new JacksonTranslationService();
View Full Code Here

Examples of org.springframework.data.couchbase.core.convert.translation.JacksonTranslationService.afterPropertiesSet()

    return converter;
  }

  private static TranslationService getDefaultTranslationService() {
    final JacksonTranslationService jacksonTranslationService = new JacksonTranslationService();
    jacksonTranslationService.afterPropertiesSet();
    return jacksonTranslationService;
  }

  private Object translateEncode(final CouchbaseStorable source) {
    return translationService.encode(source);
View Full Code Here

Examples of org.springframework.data.elasticsearch.client.NodeClientFactoryBean.afterPropertiesSet()

  }

  private Client createNodeClient() throws Exception {
    NodeClientFactoryBean factory = new NodeClientFactoryBean(true);
    factory.setClusterName(this.properties.getClusterName());
    factory.afterPropertiesSet();
    return factory.getObject();
  }

  private Client createTransportClient() throws Exception {
    TransportClientFactoryBean factory = new TransportClientFactoryBean();
View Full Code Here

Examples of org.springframework.data.elasticsearch.client.TransportClientFactoryBean.afterPropertiesSet()

  private Client createTransportClient() throws Exception {
    TransportClientFactoryBean factory = new TransportClientFactoryBean();
    factory.setClusterName(this.properties.getClusterName());
    factory.setClusterNodes(this.properties.getClusterNodes());
    factory.afterPropertiesSet();
    return factory.getObject();
  }

  @Override
  public void destroy() throws Exception {
View Full Code Here

Examples of org.springframework.data.gemfire.CacheFactoryBean.afterPropertiesSet()

  @Autowired ApplicationContext ctx;

  @Test
  public void testEagerInit() throws Exception {
    CacheFactoryBean cfb = (CacheFactoryBean) ctx.getBean("&gemfireCache");
    cfb.afterPropertiesSet();
    assertTrue(!cfb.isLazyInitialize());
  }

}
View Full Code Here

Examples of org.springframework.data.hadoop.configuration.ConfigurationFactoryBean.afterPropertiesSet()

  @Test
  public void testURLCycle() throws Exception {
    ConfigurationFactoryBean cfactory;
    cfactory = new ConfigurationFactoryBean();
    cfactory.setRegisterUrlHandler(true);
    cfactory.afterPropertiesSet();

    /* create hdfs resource loader */
    HdfsResourceLoader ldr = new HdfsResourceLoader(cfactory.getObject(), null, null);
    assertNotNull(ldr);
  }
View Full Code Here

Examples of org.springframework.data.hadoop.store.output.TextFileWriter.afterPropertiesSet()

    ChainedFileNamingStrategy fileNamingStrategy = new ChainedFileNamingStrategy();
    fileNamingStrategy.register(new StaticFileNamingStrategy("data"));
    fileNamingStrategy.register(new RollingFileNamingStrategy());
    writer.setFileNamingStrategy(fileNamingStrategy);
    writer.setInWritingSuffix(".tmp");
    writer.afterPropertiesSet();
    TestUtils.writeData(writer, dataArray);

    Thread.sleep(1000);

    writer = new TextFileWriter(getConfiguration(), testDefaultPath, null);
View Full Code Here

Examples of org.springframework.data.keyvalue.redis.connection.jedis.JedisConnectionFactory.afterPropertiesSet()

    jedisConnFactory.setUsePool(true);

    jedisConnFactory.setPort(SettingsUtils.getPort());
    jedisConnFactory.setHostName(SettingsUtils.getHost());

    jedisConnFactory.afterPropertiesSet();

    RedisTemplate<String, String> stringTemplate = new StringRedisTemplate(jedisConnFactory);
    RedisTemplate<String, Person> personTemplate = new RedisTemplate<String, Person>();
    personTemplate.setConnectionFactory(jedisConnFactory);
    personTemplate.afterPropertiesSet();
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.