类 EventPublicationInterceptor

    • 方法详细资料

      • setApplicationEventClass

        public void setApplicationEventClass​(Class<?> applicationEventClass)
        Set the application event class to publish.

        The event class must have a constructor with a single Object argument for the event source. The interceptor will pass in the invoked object.

        抛出:
        IllegalArgumentException - if the supplied Class is null or if it is not an ApplicationEvent subclass or if it does not expose a constructor that takes a single Object argument
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        从接口复制的说明: 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.

        指定者:
        afterPropertiesSet 在接口中 InitializingBean
        抛出:
        Exception - in the event of misconfiguration (such as failure to set an essential property) or if initialization fails for any other reason