クラスの使用
org.springframework.context.ApplicationEvent
ApplicationEvent を使用するパッケージ
パッケージ
説明
このパッケージは、beans パッケージに基づいて構築され、メッセージソースと Observer デザインパターンのサポート、および一貫性のある API を使用してリソースを取得するアプリケーションオブジェクトの機能を追加します。
標準コンテキストイベントなどのアプリケーションイベントのサポートクラス。
ApplicationContext 実装および MessageSource 実装の抽象基本クラスなど、org.springframework.context パッケージをサポートするクラス。
「単純な」メッセージブローカの実装を、抽象基本クラスおよびサブスクリプションのレジストリなどの他のサポート型とともに提供します。
「ユーザー」宛先へのメッセージの処理のサポート(つまり
このパッケージには Spring TestContext フレームワークが含まれており、使用中の実際のテストフレームワークにとらわれないアノテーション駆動型ユニットおよび統合テストのサポートを提供します。
Spring TestContext フレームワークのテストイベントサポートクラス。
Spring のトランザクションイベントのリスニングのサポート。
WebApplicationContext 実装やさまざまなユーティリティクラスなど、
org.springframework.web.context パッケージをサポートするクラス。Spring のメッセージングモジュール用の WebSocket 統合。
org.springframework.context 内の ApplicationEvent 使用
型の型パラメーターを持つ org.springframework.context のクラス ApplicationEvent修飾子と型インターフェース説明interfaceApplicationListener<E extends ApplicationEvent>アプリケーションイベントリスナーによって実装されるインターフェース。型 ApplicationEvent のパラメーターを持つ org.springframework.context のメソッド修飾子と型メソッド説明default voidApplicationEventPublisher.publishEvent(ApplicationEvent event) このアプリケーションに登録されているすべての一致するリスナーにアプリケーションイベントを通知します。org.springframework.context.event 内の ApplicationEvent 使用
修飾子と型クラス説明classApplicationContextに対して発生したイベントの基本クラス。classApplicationContextが閉じられたときに発生するイベント。classApplicationContextが初期化またはリフレッシュされるときに発生するイベント。classApplicationContextが開始されるときに発生するイベント。classApplicationContextが停止したときに発生するイベント。型 ApplicationEvent のパラメーターを持つ org.springframework.context.event のメソッド修飾子と型メソッド説明protected CollectionSE<ApplicationListener<?>>AbstractApplicationEventMulticaster.getApplicationListeners(ApplicationEvent event, ResolvableType eventType) 指定されたイベント型に一致する ApplicationListeners のコレクションを返します。protected voidSimpleApplicationEventMulticaster.invokeListener(ApplicationListener<?> listener, ApplicationEvent event) 指定されたイベントで指定されたリスナーを呼び出します。voidApplicationEventMulticaster.multicastEvent(ApplicationEvent event) 指定されたアプリケーションイベントを適切なリスナーにマルチキャストします。voidApplicationEventMulticaster.multicastEvent(ApplicationEvent event, ResolvableType eventType) 指定されたアプリケーションイベントを適切なリスナーにマルチキャストします。voidSimpleApplicationEventMulticaster.multicastEvent(ApplicationEvent event) voidSimpleApplicationEventMulticaster.multicastEvent(ApplicationEvent event, ResolvableType eventType) voidApplicationListenerMethodAdapter.onApplicationEvent(ApplicationEvent event) voidGenericApplicationListenerAdapter.onApplicationEvent(ApplicationEvent event) voidSourceFilteringListener.onApplicationEvent(ApplicationEvent event) protected voidSourceFilteringListener.onApplicationEventInternal(ApplicationEvent event) 目的のイベントソースに従ってすでにフィルタリングした後、実際にイベントを処理します。voidApplicationListenerMethodAdapter.processEvent(ApplicationEvent event) 指定されたApplicationEventを処理し、条件が一致するかどうかを確認し、null 以外の結果があればそれを処理します。protected ObjectSE[]ApplicationListenerMethodAdapter.resolveArguments(ApplicationEvent event) 指定されたApplicationEventに使用するメソッド引数を解決します。型 ApplicationEvent の型引数を持つ org.springframework.context.event のメソッドパラメーター修飾子と型メソッド説明default booleanGenericApplicationListener.supportsEventType(ClassSE<? extends ApplicationEvent> eventType) booleanSmartApplicationListener.supportsEventType(ClassSE<? extends ApplicationEvent> eventType) このリスナーが特定のイベント型を実際にサポートしているかどうかを判断します。org.springframework.context.support 内の ApplicationEvent 使用
型 ApplicationEvent のパラメーターを持つ org.springframework.context.support のメソッド修飾子と型メソッド説明voidAbstractApplicationContext.publishEvent(ApplicationEvent event) 指定されたイベントをすべてのリスナーに公開します。org.springframework.messaging.simp.broker 内の ApplicationEvent 使用
org.springframework.messaging.simp.user 内の ApplicationEvent 使用
型 ApplicationEvent のパラメーターを持つ org.springframework.messaging.simp.user のメソッド型 ApplicationEvent の型引数を持つ org.springframework.messaging.simp.user のメソッドパラメーター修飾子と型メソッド説明booleanMultiServerUserRegistry.supportsEventType(ClassSE<? extends ApplicationEvent> eventType) org.springframework.test.context 内の ApplicationEvent 使用
型 ApplicationEvent の型引数を持つ org.springframework.test.context のメソッドパラメーター修飾子と型メソッド説明default voidTestContext.publishEvent(FunctionSE<TestContext, ? extends ApplicationEvent> eventFactory) org.springframework.test.context.event 内の ApplicationEvent 使用
修飾子と型クラス説明classclassclassclassclassclassclassclassEventPublishingTestExecutionListenerによって発行されたイベントの基本クラス。型 ApplicationEvent の引数を持つ型を返す org.springframework.test.context.event のメソッドorg.springframework.transaction.event 内の ApplicationEvent 使用
型の型パラメーターを持つ org.springframework.transaction.event のクラス ApplicationEvent修飾子と型インターフェース説明interfaceTransactionalApplicationListener<E extends ApplicationEvent>TransactionPhaseに従って呼び出されるApplicationListener。classイベントの処理をターゲットApplicationListenerインスタンスに委譲するTransactionalApplicationListenerアダプター。型 ApplicationEvent のパラメーターを持つ org.springframework.transaction.event のメソッド修飾子と型メソッド説明voidTransactionalApplicationListenerMethodAdapter.onApplicationEvent(ApplicationEvent event) default voidTransactionalApplicationListener.SynchronizationCallback.postProcessEvent(ApplicationEvent event, ThrowableSE ex) トランザクションイベントリスナーの呼び出し後に呼び出されます。default voidTransactionalApplicationListener.SynchronizationCallback.preProcessEvent(ApplicationEvent event) トランザクションイベントリスナーの呼び出しの前に呼び出されます。org.springframework.web.context.support 内の ApplicationEvent 使用
修飾子と型クラス説明classリクエストが ApplicationContext 内で処理されるときに発生するイベント。classRequestHandledEvent のサーブレット固有のサブクラス。サーブレット固有のコンテキスト情報を追加します。org.springframework.web.socket.messaging 内の ApplicationEvent 使用
修飾子と型クラス説明classWebSocket クライアントから受信され、上位レベルのサブプロトコルに解析されたメッセージのイベントの基本クラス(例:classconnected イベントは、クライアントの接続リクエストに対するサーバーのレスポンスを表します。class新しい WebSocket クライアントがシンプルメッセージングプロトコル(例:classシンプルメッセージングプロトコルを使用する WebSocket クライアントのセッション(たとえばclass新しい WebSocket クライアントがシンプルメッセージングプロトコル(例:class新しい WebSocket クライアントがシンプルメッセージングプロトコル(例:型 ApplicationEvent のパラメーターを持つ org.springframework.web.socket.messaging のメソッド型 ApplicationEvent の型引数を持つ org.springframework.web.socket.messaging のメソッドパラメーター修飾子と型メソッド説明booleanDefaultSimpUserRegistry.supportsEventType(ClassSE<? extends ApplicationEvent> eventType)