Examples of afterPropertiesSet()


Examples of org.springframework.format.support.FormattingConversionServiceFactoryBean.afterPropertiesSet()

     *
     * @return
     */
    private FormattingConversionService getDefaultConversionService() {
        FormattingConversionServiceFactoryBean serviceFactoryBean = new FormattingConversionServiceFactoryBean();
        serviceFactoryBean.afterPropertiesSet();
        return serviceFactoryBean.getObject();
    }

    @Override
    public void setExtErrorBasename(String extErrorBasename) {
View Full Code Here

Examples of org.springframework.integration.amqp.inbound.AmqpInboundChannelAdapter.afterPropertiesSet()

    adapter.setBeanName("inbound." + name);
    DefaultAmqpHeaderMapper mapper = new DefaultAmqpHeaderMapper();
    mapper.setRequestHeaderNames(properties.getRequestHeaderPattens(this.defaultRequestHeaderPatterns));
    mapper.setReplyHeaderNames(properties.getReplyHeaderPattens(this.defaultReplyHeaderPatterns));
    adapter.setHeaderMapper(mapper);
    adapter.afterPropertiesSet();
    Binding consumerBinding = Binding.forConsumer(name, adapter, moduleInputChannel, properties);
    addBinding(consumerBinding);
    ReceivingHandler convertingBridge = new ReceivingHandler();
    convertingBridge.setOutputChannel(moduleInputChannel);
    convertingBridge.setBeanName(name + ".convert.bridge");
View Full Code Here

Examples of org.springframework.integration.config.ConsumerEndpointFactoryBean.afterPropertiesSet()

        bridgeFactoryBean.setInputChannel(previousOutputChannel);
        bridgeFactoryBean.setHandler(handler);
        try {
          // TODO: might not be necessary to pass this context, but the FB requires non-null
          bridgeFactoryBean.setBeanFactory(this.context.getBeanFactory());
          bridgeFactoryBean.afterPropertiesSet();
          AbstractEndpoint endpoint = bridgeFactoryBean.getObject();
          endpoints.add(endpoint);
          this.context.getBeanFactory().registerSingleton("bridge-" + i, endpoint);
          endpoint.setComponentName("bridge-" + i);
          endpoint.afterPropertiesSet();
View Full Code Here

Examples of org.springframework.integration.core.MessagingTemplate.afterPropertiesSet()

  @DirtiesContext
  public void testRegisterFromSimpleRequestString() throws Exception {

    MessagingTemplate gateway = new MessagingTemplate();
    gateway.setReceiveTimeout(500L);
    gateway.afterPropertiesSet();

    JobConfigurationRequest request = new JobConfigurationRequest();
    request.setXml(IOUtils.toString(new ClassPathResource("/staging-context.xml").getInputStream()));
    gateway.convertAndSend(requests, request);
    assertNotNull("Time out waiting for reply", result);
View Full Code Here

Examples of org.springframework.integration.endpoint.AbstractEndpoint.afterPropertiesSet()

          bridgeFactoryBean.afterPropertiesSet();
          AbstractEndpoint endpoint = bridgeFactoryBean.getObject();
          endpoints.add(endpoint);
          this.context.getBeanFactory().registerSingleton("bridge-" + i, endpoint);
          endpoint.setComponentName("bridge-" + i);
          endpoint.afterPropertiesSet();
        }
        catch (Exception e) {
          throw new IllegalStateException("failed to start bridge for CompositeModule", e);
        }
      }
View Full Code Here

Examples of org.springframework.integration.endpoint.EventDrivenConsumer.afterPropertiesSet()

    Assert.isInstanceOf(SubscribableChannel.class, moduleOutputChannel);
    MessageHandler handler = new SendingHandler(delegate, replyTo, properties);
    EventDrivenConsumer consumer = new EventDrivenConsumer((SubscribableChannel) moduleOutputChannel, handler);
    consumer.setBeanFactory(getBeanFactory());
    consumer.setBeanName("outbound." + name);
    consumer.afterPropertiesSet();
    Binding producerBinding = Binding.forProducer(name, moduleOutputChannel, consumer, properties);
    addBinding(producerBinding);
    producerBinding.start();
  }
View Full Code Here

Examples of org.springframework.integration.endpoint.SourcePollingChannelAdapter.afterPropertiesSet()

          spca.setTrigger(trigger);

          spca.setSource(mfqms);
          spca.setOutputChannel(channelResolver.resolveChannelName(platformType + "StatusFileInputChannel"));
          spca.setAutoStartup(false);
          spca.afterPropertiesSet();

          DirectChannel outputChannel = (DirectChannel) channelResolver.resolveChannelName(platformType + "StatusChannel");
          outputChannel.setBeanName(platformType + "StatusChannel");
          outputChannel.setBeanFactory(context.getBeanFactory());
View Full Code Here

Examples of org.springframework.integration.file.remote.RemoteFileTemplate.afterPropertiesSet()

    StepContext stepContext = new StepContext(stepExecution);
    ChunkContext chunkContext = new ChunkContext(stepContext);

    RemoteFileTemplate template = new RemoteFileTemplate(factory);
    template.setBeanFactory(mock(BeanFactory.class));
    template.afterPropertiesSet();

    // clean up from old tests
    FileSystem fs = this.hadoopFileSystemTestSupport.getResource();
    Path p = new Path("/qux/foo.txt");
    fs.delete(p, true);
View Full Code Here

Examples of org.springframework.integration.gateway.GatewayProxyFactoryBean.afterPropertiesSet()

        gatewayProxy.setComponentName("gateway-" + s.getName());
        gatewayProxy.setDefaultReplyChannel(reply);

        mc.subscribe(new ServiceActivatingHandler(s, "consume"));

        gatewayProxy.afterPropertiesSet();

        this.proxyMap.put(s.getName(), gatewayProxy);
      }
    }
    else {
View Full Code Here

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

      }
      if (previousOutputChannel != null) {
        BridgeHandler handler = new BridgeHandler();
        handler.setBeanFactory(this.context.getBeanFactory());
        handler.setOutputChannel(inputChannel);
        handler.afterPropertiesSet();
        ConsumerEndpointFactoryBean bridgeFactoryBean = new ConsumerEndpointFactoryBean();
        bridgeFactoryBean.setInputChannel(previousOutputChannel);
        bridgeFactoryBean.setHandler(handler);
        try {
          // TODO: might not be necessary to pass this context, but the FB requires non-null
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.