类 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>
-
字段概要
从接口继承的字段 com.wu.framework.easy.listener.core.EasyListenerAnnotationBeanPostProcessor
ENHANCER从接口继承的字段 org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidInvoked right at the end of the singleton pre-instantiation phase, with a guarantee that all regular singleton beans have been created already.intgetOrder()Get the order value of this object.hasStrategy(com.wu.framework.easy.listener.stereotype.EasyListener listener) hasStrategyvoidprocessAssignEasyListener(com.wu.framework.easy.listener.stereotype.EasyListener listener, Method method, Object bean, String beanName) 处理注解中指定类型注解的 监听voidprocessEasyListener(com.wu.framework.easy.listener.stereotype.EasyListener listener, Method method, Object bean, String beanName) 处理 EasyListener 监听voidprocessListener(com.wu.framework.easy.listener.stereotype.redis.EasyRedisListener listener, Method method, Object bean, String beanName) 监听注解voidprocessListenerEndpoint(MethodRedisListenerEndpoint endpoint, Method method, Object bean, String beanName) voidprocessMultiMethodListeners(Collection<com.wu.framework.easy.listener.stereotype.redis.EasyRedisListener> classLevelListeners, List<Method> multiMethods, Object bean, String beanName) 类注解普遍方法监听voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) Callback that supplies the owning factory to a bean instance.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.springframework.beans.factory.config.BeanPostProcessor
postProcessBeforeInitialization从接口继承的方法 com.wu.framework.easy.listener.core.EasyListenerAnnotationBeanPostProcessor
checkProxy, enhance, findListenerAnnotations, getListenerClass, postProcessAfterInitialization
-
构造器详细资料
-
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
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 (nevernull). 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
BeanFactorybootstrap, 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-startupvalues).Same order values will result in arbitrary sort positions for the affected objects.
- 返回:
- the order value
- 另请参阅:
-
Ordered.HIGHEST_PRECEDENCEOrdered.LOWEST_PRECEDENCE
-