类的使用
cn.taketoday.context.ApplicationEvent
使用ApplicationEvent的程序包
-
cn.taketoday.context中ApplicationEvent的使用
类型参数类型为ApplicationEvent的cn.taketoday.context中的类修饰符和类型接口说明interfaceApplicationListener<E extends ApplicationEvent>Interface to be implemented by application event listeners. -
cn.taketoday.context.event中ApplicationEvent的使用
修饰符和类型类说明classBase class for events raised for anApplicationContext.classWhen closeApplicationContextwill publish this eventclassEvent raised when anApplicationContextgets initialized or refreshed.classEvent raised when anApplicationContextgets started.classEvent raised when anApplicationContextgets stopped.修饰符和类型方法说明protected Collection<ApplicationListener<?>>AbstractApplicationEventMulticaster.getApplicationListeners(ApplicationEvent event, cn.taketoday.core.ResolvableType eventType) Return a Collection of ApplicationListeners matching the given event type.protected voidSimpleApplicationEventMulticaster.invokeListener(ApplicationListener<?> listener, ApplicationEvent event) Invoke the given listener with the given event.voidApplicationEventMulticaster.multicastEvent(ApplicationEvent event) Multicast the given application event to appropriate listeners.voidApplicationEventMulticaster.multicastEvent(ApplicationEvent event, cn.taketoday.core.ResolvableType eventType) Multicast the given application event to appropriate listeners.voidSimpleApplicationEventMulticaster.multicastEvent(ApplicationEvent event) voidSimpleApplicationEventMulticaster.multicastEvent(ApplicationEvent event, cn.taketoday.core.ResolvableType eventType) voidApplicationListenerMethodAdapter.onApplicationEvent(ApplicationEvent event) Process the specifiedObject, checking if the condition matches and handling a non-null result, if any.voidGenericApplicationListenerAdapter.onApplicationEvent(ApplicationEvent event) voidSourceFilteringListener.onApplicationEvent(ApplicationEvent event) protected voidSourceFilteringListener.onApplicationEventInternal(ApplicationEvent event) Actually process the event, after having filtered according to the desired event source already.protected Object[]ApplicationListenerMethodAdapter.resolveArguments(ApplicationEvent event) Resolve the method arguments to use for the specifiedApplicationEvent.类型变量类型为ApplicationEvent的cn.taketoday.context.event中的方法参数修饰符和类型方法说明default booleanGenericApplicationListener.supportsEventType(Class<? extends ApplicationEvent> eventType) OverridesSmartApplicationListener.supportsEventType(Class)with delegation toGenericApplicationListener.supportsEventType(ResolvableType).booleanSmartApplicationListener.supportsEventType(Class<? extends ApplicationEvent> eventType) Determine whether this listener actually supports the given event type.