Class CachingDestinationResolverProxy<D>

  • java.lang.Object
    • org.springframework.messaging.core.CachingDestinationResolverProxy<D>
    • Constructor Detail

      • CachingDestinationResolverProxy

        public CachingDestinationResolverProxy(DestinationResolver<D> targetDestinationResolver)
        Create a new CachingDestinationResolverProxy using the given target DestinationResolver to actually resolve destinations.
        targetDestinationResolver - the target DestinationResolver to delegate to
    • Method Detail

      • setTargetDestinationResolver

        public void setTargetDestinationResolver(DestinationResolver<D> targetDestinationResolver)
        Set the target DestinationResolver to delegate to.
      • afterPropertiesSet

        public void afterPropertiesSet()
        Description copied from interface: InitializingBean
        Invoked by the containing BeanFactory after it has set all bean properties and satisfied BeanFactoryAware, ApplicationContextAware etc.

        This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.

        Specified by:
        afterPropertiesSet in interface InitializingBean
      • resolveDestination

        public D resolveDestination(java.lang.String name)
                             throws DestinationResolutionException
        Resolves and caches destinations if successfully resolved by the target DestinationResolver implementation.
        Specified by:
        resolveDestination in interface DestinationResolver<D>
        name - the destination name to be resolved
        the currently resolved destination or an already cached destination
        DestinationResolutionException - if the target DestinationResolver reports an error during destination resolution