Class EncoderDecoderFactoryBean

java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<org.springframework.integration.ip.tcp.serializer.AbstractByteArraySerializer>
org.springframework.cloud.fn.common.tcp.EncoderDecoderFactoryBean
All Implemented Interfaces:
Aware, BeanClassLoaderAware, BeanFactoryAware, DisposableBean, FactoryBean<org.springframework.integration.ip.tcp.serializer.AbstractByteArraySerializer>, InitializingBean, ApplicationEventPublisherAware

public class EncoderDecoderFactoryBean extends AbstractFactoryBean<org.springframework.integration.ip.tcp.serializer.AbstractByteArraySerializer> implements ApplicationEventPublisherAware
Factory bean for an encoder/decoder based on Encoding.
Author:
Gary Russell, Christian Tzolov
  • Constructor Details

    • EncoderDecoderFactoryBean

      public EncoderDecoderFactoryBean(Encoding encoding)
  • Method Details

    • setApplicationEventPublisher

      public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)
      Specified by:
      setApplicationEventPublisher in interface ApplicationEventPublisherAware
    • setMaxMessageSize

      public void setMaxMessageSize(int maxMessageSize)
      The maximum message size allowed when decoding.
      Parameters:
      maxMessageSize - the maximum message size.
    • createInstance

      protected org.springframework.integration.ip.tcp.serializer.AbstractByteArraySerializer createInstance() throws Exception
      Specified by:
      createInstance in class AbstractFactoryBean<org.springframework.integration.ip.tcp.serializer.AbstractByteArraySerializer>
      Throws:
      Exception
    • getObjectType

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface FactoryBean<org.springframework.integration.ip.tcp.serializer.AbstractByteArraySerializer>
      Specified by:
      getObjectType in class AbstractFactoryBean<org.springframework.integration.ip.tcp.serializer.AbstractByteArraySerializer>