Class BinderAwareChannelResolver
- java.lang.Object
-
- org.springframework.messaging.core.BeanFactoryMessageChannelDestinationResolver
-
- org.springframework.cloud.stream.binding.BinderAwareChannelResolver
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.messaging.core.DestinationResolver<org.springframework.messaging.MessageChannel>
@Deprecated public class BinderAwareChannelResolver extends org.springframework.messaging.core.BeanFactoryMessageChannelDestinationResolver
Deprecated.As of 3.0.0 in favor if providing `spring.cloud.stream.sendto.destination` property. This is primarily for function-based programming model. For StreamListener it would still be required and thus will stay until we deprecate and eventually discontinue StreamListener and annotation-based programming model.ADestinationResolverimplementation that resolves the channel from the bean factory and, if not present, creates a new channel and adds it to the factory after binding it to the binder.- Author:
- Mark Fisher, Gary Russell, Ilayaperumal Gopinathan, Oleg Zhurakousky
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBinderAwareChannelResolver.NewDestinationBindingCallback<T>Deprecated.Configure a new destination before it is bound.
-
Constructor Summary
Constructors Constructor Description BinderAwareChannelResolver(BindingService bindingService, AbstractBindingTargetFactory<? extends org.springframework.messaging.MessageChannel> bindingTargetFactory, DynamicDestinationsBindable dynamicDestinationsBindable)Deprecated.BinderAwareChannelResolver(BindingService bindingService, AbstractBindingTargetFactory<? extends org.springframework.messaging.MessageChannel> bindingTargetFactory, DynamicDestinationsBindable dynamicDestinationsBindable, BinderAwareChannelResolver.NewDestinationBindingCallback callback)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.springframework.messaging.MessageChannelresolveDestination(String channelName)Deprecated.voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)Deprecated.
-
-
-
Constructor Detail
-
BinderAwareChannelResolver
public BinderAwareChannelResolver(BindingService bindingService, AbstractBindingTargetFactory<? extends org.springframework.messaging.MessageChannel> bindingTargetFactory, DynamicDestinationsBindable dynamicDestinationsBindable)
Deprecated.
-
BinderAwareChannelResolver
public BinderAwareChannelResolver(BindingService bindingService, AbstractBindingTargetFactory<? extends org.springframework.messaging.MessageChannel> bindingTargetFactory, DynamicDestinationsBindable dynamicDestinationsBindable, BinderAwareChannelResolver.NewDestinationBindingCallback callback)
Deprecated.
-
-
Method Detail
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
Deprecated.- Specified by:
setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware- Overrides:
setBeanFactoryin classorg.springframework.messaging.core.BeanFactoryMessageChannelDestinationResolver
-
resolveDestination
public org.springframework.messaging.MessageChannel resolveDestination(String channelName)
Deprecated.- Specified by:
resolveDestinationin interfaceorg.springframework.messaging.core.DestinationResolver<org.springframework.messaging.MessageChannel>- Overrides:
resolveDestinationin classorg.springframework.messaging.core.BeanFactoryMessageChannelDestinationResolver
-
-