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
-
Field Summary
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.integration.ip.tcp.serializer.AbstractByteArraySerializer
Class<?>
void
setApplicationEventPublisher
(ApplicationEventPublisher applicationEventPublisher) void
setMaxMessageSize
(int maxMessageSize) The maximum message size allowed when decoding.Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Constructor Details
-
EncoderDecoderFactoryBean
-
-
Method Details
-
setApplicationEventPublisher
- Specified by:
setApplicationEventPublisher
in interfaceApplicationEventPublisherAware
-
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 classAbstractFactoryBean<org.springframework.integration.ip.tcp.serializer.AbstractByteArraySerializer>
- Throws:
Exception
-
getObjectType
- Specified by:
getObjectType
in interfaceFactoryBean<org.springframework.integration.ip.tcp.serializer.AbstractByteArraySerializer>
- Specified by:
getObjectType
in classAbstractFactoryBean<org.springframework.integration.ip.tcp.serializer.AbstractByteArraySerializer>
-