Class BindableProxyFactory
- java.lang.Object
-
- org.springframework.cloud.stream.binding.AbstractBindableProxyFactory
-
- org.springframework.cloud.stream.binding.BindableProxyFactory
-
- All Implemented Interfaces:
org.aopalliance.aop.Advice
,org.aopalliance.intercept.Interceptor
,org.aopalliance.intercept.MethodInterceptor
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.FactoryBean<Object>
,org.springframework.beans.factory.InitializingBean
,Bindable
public class BindableProxyFactory extends AbstractBindableProxyFactory implements org.aopalliance.intercept.MethodInterceptor, org.springframework.beans.factory.FactoryBean<Object>, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.BeanFactoryAware
FactoryBean
for instantiating the interfaces specified viaEnableBinding
.- Author:
- Marius Bogoevici, David Syer, Ilayaperumal Gopinathan, Oleg Zhurakousky, Soby Chacko
- See Also:
EnableBinding
-
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.beans.factory.BeanFactory
beanFactory
-
Fields inherited from class org.springframework.cloud.stream.binding.AbstractBindableProxyFactory
bindingTargetFactories, inputHolders, outputHolders, type
-
-
Constructor Summary
Constructors Constructor Description BindableProxyFactory(Class<?> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
Object
getObject()
Class<?>
getObjectType()
Object
invoke(org.aopalliance.intercept.MethodInvocation invocation)
boolean
isSingleton()
void
replaceInputChannel(String originalChannelName, String newChannelName, org.springframework.messaging.SubscribableChannel messageChannel)
void
replaceOutputChannel(String originalChannelName, String newChannelName, org.springframework.messaging.MessageChannel messageChannel)
void
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
-
Methods inherited from class org.springframework.cloud.stream.binding.AbstractBindableProxyFactory
createAndBindInputs, createAndBindOutputs, getBindingTargetFactory, getInputs, getOutputs, populateBindingTargetFactories, unbindInputs, unbindOutputs
-
-
-
-
Constructor Detail
-
BindableProxyFactory
public BindableProxyFactory(Class<?> type)
-
-
Method Detail
-
invoke
public Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
- Specified by:
invoke
in interfaceorg.aopalliance.intercept.MethodInterceptor
-
replaceInputChannel
public void replaceInputChannel(String originalChannelName, String newChannelName, org.springframework.messaging.SubscribableChannel messageChannel)
-
replaceOutputChannel
public void replaceOutputChannel(String originalChannelName, String newChannelName, org.springframework.messaging.MessageChannel messageChannel)
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
getObject
public Object getObject()
- Specified by:
getObject
in interfaceorg.springframework.beans.factory.FactoryBean<Object>
-
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<Object>
-
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interfaceorg.springframework.beans.factory.FactoryBean<Object>
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
- Specified by:
setBeanFactory
in interfaceorg.springframework.beans.factory.BeanFactoryAware
- Throws:
org.springframework.beans.BeansException
-
-