Class BaseMethodObserver

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String beanName  
      protected java.lang.reflect.Method method  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getId()  
      java.util.Set<java.lang.annotation.Annotation> getObservedQualifiers()  
      protected java.lang.Object getTargetBean()
      Return the target bean instance to use.
      boolean isAsync()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • beanName

        protected final java.lang.String beanName
      • method

        protected final java.lang.reflect.Method method
    • Constructor Detail

      • BaseMethodObserver

        protected BaseMethodObserver​(java.lang.String beanName,
                                     java.lang.reflect.Method method,
                                     ApplicationContext applicationContext)
        Parameters:
        beanName - the spring bean name that has the executable method
        method - the method to execute when events are received
        applicationContext - spring application context to look up the Spring bean
    • Method Detail

      • getTargetBean

        protected java.lang.Object getTargetBean()
        Return the target bean instance to use.
        Returns:
        the actual bean from the ApplicationContext using beanName.
      • getId

        public java.lang.String getId()
      • getObservedQualifiers

        public java.util.Set<java.lang.annotation.Annotation> getObservedQualifiers()
      • isAsync

        public boolean isAsync()