类 EasyRedisListenerAnnotationBeanPostProcessor<K,V>

java.lang.Object
com.wu.framework.easy.listener.core.AbstractEasyListenerAnnotationBeanPostProcessor<com.wu.framework.easy.listener.stereotype.redis.EasyRedisListener>
com.wu.framework.easy.redis.listener.EasyRedisListenerAnnotationBeanPostProcessor<K,V>
所有已实现的接口:
EasyListenerAnnotationBeanPostProcessor<com.wu.framework.easy.listener.stereotype.redis.EasyRedisListener>, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.SmartInitializingSingleton, org.springframework.core.Ordered

@ConditionalOnProperty(prefix="spring.redis", value="host") @ListenerProcessorStrategy(strategy=REDIS) public class EasyRedisListenerAnnotationBeanPostProcessor<K,V> extends AbstractEasyListenerAnnotationBeanPostProcessor<com.wu.framework.easy.listener.stereotype.redis.EasyRedisListener>
  • 构造器详细资料

    • EasyRedisListenerAnnotationBeanPostProcessor

      public EasyRedisListenerAnnotationBeanPostProcessor()
  • 方法详细资料

    • processMultiMethodListeners

      public void processMultiMethodListeners(Collection<com.wu.framework.easy.listener.stereotype.redis.EasyRedisListener> classLevelListeners, List<Method> multiMethods, Object bean, String beanName)
      类注解普遍方法监听
      参数:
      classLevelListeners -
      multiMethods -
      bean -
      beanName -
    • processListener

      public void processListener(com.wu.framework.easy.listener.stereotype.redis.EasyRedisListener listener, Method method, Object bean, String beanName)
      监听注解
      参数:
      listener -
      method -
      bean -
      beanName -
    • processEasyListener

      public void processEasyListener(com.wu.framework.easy.listener.stereotype.EasyListener listener, Method method, Object bean, String beanName)
      处理 EasyListener 监听
      参数:
      listener - 监听者
      method - 监听的方法
      bean - 监听的对象
      beanName - 监听对象的名称
    • processAssignEasyListener

      public void processAssignEasyListener(com.wu.framework.easy.listener.stereotype.EasyListener listener, Method method, Object bean, String beanName)
      处理注解中指定类型注解的 监听
      参数:
      listener - 监听者
      method - 监听的方法
      bean - 监听的对象
      beanName - 监听对象的名称
    • hasStrategy

      public Boolean hasStrategy(com.wu.framework.easy.listener.stereotype.EasyListener listener)
      hasStrategy
      参数:
      listener - 监听者
      返回:
      返回数据
    • processListenerEndpoint

      public void processListenerEndpoint(MethodRedisListenerEndpoint endpoint, Method method, Object bean, String beanName)
    • setBeanFactory

      public void setBeanFactory(@NonNull org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
      Callback that supplies the owning factory to a bean instance.

      Invoked after the population of normal bean properties but before an initialization callback such as InitializingBean.afterPropertiesSet() or a custom init-method.

      参数:
      beanFactory - owning BeanFactory (never null). The bean can immediately call methods on the factory.
      抛出:
      org.springframework.beans.BeansException - in case of initialization errors
      另请参阅:
      • BeanInitializationException
    • afterSingletonsInstantiated

      public void afterSingletonsInstantiated()
      Invoked right at the end of the singleton pre-instantiation phase, with a guarantee that all regular singleton beans have been created already. ListableBeanFactory.getBeansOfType(java.lang.Class<T>) calls within this method won't trigger accidental side effects during bootstrap.

      NOTE: This callback won't be triggered for singleton beans lazily initialized on demand after BeanFactory bootstrap, and not for any other bean scope either. Carefully use it for beans with the intended bootstrap semantics only.

    • getOrder

      public int getOrder()
      Get the order value of this object.

      Higher values are interpreted as lower priority. As a consequence, the object with the lowest value has the highest priority (somewhat analogous to Servlet load-on-startup values).

      Same order values will result in arbitrary sort positions for the affected objects.

      返回:
      the order value
      另请参阅:
      • Ordered.HIGHEST_PRECEDENCE
      • Ordered.LOWEST_PRECEDENCE