クラスの使用
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修飾子と型インターフェース説明interface
ApplicationListener<E extends ApplicationEvent>
アプリケーションイベントリスナーによって実装されるインターフェース。型 ApplicationEvent のパラメーターを持つ org.springframework.context のメソッド修飾子と型メソッド説明default void
ApplicationEventPublisher.publishEvent
(ApplicationEvent event) このアプリケーションに登録されているすべての一致するリスナーにアプリケーションイベントを通知します。org.springframework.context.event 内の ApplicationEvent 使用
修飾子と型クラス説明class
ApplicationContext
に対して発生したイベントの基本クラス。class
ApplicationContext
が閉じられたときに発生するイベント。class
ApplicationContext
が初期化またはリフレッシュされるときに発生するイベント。class
ApplicationContext
が開始されるときに発生するイベント。class
ApplicationContext
が停止したときに発生するイベント。型 ApplicationEvent の型パラメーターを使用した org.springframework.context.event のメソッド修飾子と型メソッド説明static <E extends ApplicationEvent>
GenericApplicationListenerGenericApplicationListener.forEventType
(ClassSE<E> eventType, ConsumerSE<E> consumer) 指定されたイベント型に対して新しいApplicationListener
を作成します。型 ApplicationEvent のパラメーターを持つ org.springframework.context.event のメソッド修飾子と型メソッド説明protected CollectionSE<ApplicationListener<?>>
AbstractApplicationEventMulticaster.getApplicationListeners
(ApplicationEvent event, ResolvableType eventType) 指定されたイベント型に一致する ApplicationListeners のコレクションを返します。protected void
SimpleApplicationEventMulticaster.invokeListener
(ApplicationListener<?> listener, ApplicationEvent event) 指定されたイベントで指定されたリスナーを呼び出します。void
ApplicationEventMulticaster.multicastEvent
(ApplicationEvent event) 指定されたアプリケーションイベントを適切なリスナーにマルチキャストします。void
ApplicationEventMulticaster.multicastEvent
(ApplicationEvent event, ResolvableType eventType) 指定されたアプリケーションイベントを適切なリスナーにマルチキャストします。void
SimpleApplicationEventMulticaster.multicastEvent
(ApplicationEvent event) void
SimpleApplicationEventMulticaster.multicastEvent
(ApplicationEvent event, ResolvableType eventType) void
ApplicationListenerMethodAdapter.onApplicationEvent
(ApplicationEvent event) void
GenericApplicationListenerAdapter.onApplicationEvent
(ApplicationEvent event) void
SourceFilteringListener.onApplicationEvent
(ApplicationEvent event) protected void
SourceFilteringListener.onApplicationEventInternal
(ApplicationEvent event) 目的のイベントソースに従ってすでにフィルタリングした後、実際にイベントを処理します。void
ApplicationListenerMethodAdapter.processEvent
(ApplicationEvent event) 指定されたApplicationEvent
を処理し、条件が一致するかどうかを確認し、null 以外の結果があればそれを処理します。protected ObjectSE[]
ApplicationListenerMethodAdapter.resolveArguments
(ApplicationEvent event) 指定されたApplicationEvent
に使用するメソッド引数を解決します。boolean
ApplicationListenerMethodAdapter.shouldHandle
(ApplicationEvent event) 条件が一致するかどうかを確認して、リスナーメソッドが指定されたイベントを実際に処理するかどうかを判断します。型 ApplicationEvent の型引数を持つ org.springframework.context.event のメソッドパラメーター修飾子と型メソッド説明default boolean
GenericApplicationListener.supportsEventType
(ClassSE<? extends ApplicationEvent> eventType) boolean
SmartApplicationListener.supportsEventType
(ClassSE<? extends ApplicationEvent> eventType) このリスナーが特定のイベント型を実際にサポートしているかどうかを判断します。org.springframework.context.support 内の ApplicationEvent 使用
型 ApplicationEvent のパラメーターを持つ org.springframework.context.support のメソッド修飾子と型メソッド説明void
AbstractApplicationContext.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 のメソッドパラメーター修飾子と型メソッド説明boolean
MultiServerUserRegistry.supportsEventType
(ClassSE<? extends ApplicationEvent> eventType) org.springframework.test.context 内の ApplicationEvent 使用
型 ApplicationEvent の型引数を持つ org.springframework.test.context のメソッドパラメーター修飾子と型メソッド説明default void
TestContext.publishEvent
(FunctionSE<TestContext, ? extends ApplicationEvent> eventFactory) org.springframework.test.context.event 内の ApplicationEvent 使用
修飾子と型クラス説明class
class
class
class
class
class
class
class
EventPublishingTestExecutionListener
によって発行されたイベントの基本クラス。型 ApplicationEvent の引数を持つ型を返す org.springframework.test.context.event のメソッドorg.springframework.transaction.event 内の ApplicationEvent 使用
型の型パラメーターを持つ org.springframework.transaction.event のクラス ApplicationEvent修飾子と型インターフェース説明interface
TransactionalApplicationListener<E extends ApplicationEvent>
TransactionPhase
に従って呼び出されるApplicationListener
。class
イベントの処理をターゲットApplicationListener
インスタンスに委譲するTransactionalApplicationListener
アダプター。型 ApplicationEvent のパラメーターを持つ org.springframework.transaction.event のメソッド修飾子と型メソッド説明void
TransactionalApplicationListenerMethodAdapter.onApplicationEvent
(ApplicationEvent event) default void
TransactionalApplicationListener.SynchronizationCallback.postProcessEvent
(ApplicationEvent event, ThrowableSE ex) トランザクションイベントリスナーの呼び出し後に呼び出されます。default void
TransactionalApplicationListener.SynchronizationCallback.preProcessEvent
(ApplicationEvent event) トランザクションイベントリスナーの呼び出しの前に呼び出されます。org.springframework.transaction.reactive 内の ApplicationEvent 使用
型 ApplicationEvent の型引数を持つ org.springframework.transaction.reactive のメソッドパラメーター修飾子と型メソッド説明reactor.core.publisher.Mono<VoidSE>
TransactionalEventPublisher.publishEvent
(FunctionSE<TransactionContext, ApplicationEvent> eventCreationFunction) トランザクションソースオブジェクト (TransactionContext
) をイベントインスタンスにマップする、指定された関数を通じて作成されたイベントを発行します。org.springframework.web.context.support 内の ApplicationEvent 使用
修飾子と型クラス説明class
リクエストが ApplicationContext 内で処理されるときに発生するイベント。class
RequestHandledEvent のサーブレット固有のサブクラス。サーブレット固有のコンテキスト情報を追加します。org.springframework.web.socket.messaging 内の ApplicationEvent 使用
修飾子と型クラス説明class
WebSocket クライアントから受信され、上位レベルのサブプロトコルに解析されたメッセージのイベントの基本クラス(例:class
connected イベントは、クライアントの接続リクエストに対するサーバーのレスポンスを表します。class
新しい WebSocket クライアントがシンプルメッセージングプロトコル(例:class
シンプルメッセージングプロトコルを使用する WebSocket クライアントのセッション(たとえばclass
新しい WebSocket クライアントがシンプルメッセージングプロトコル(例:class
新しい WebSocket クライアントがシンプルメッセージングプロトコル(例:型 ApplicationEvent のパラメーターを持つ org.springframework.web.socket.messaging のメソッド型 ApplicationEvent の型引数を持つ org.springframework.web.socket.messaging のメソッドパラメーター修飾子と型メソッド説明boolean
DefaultSimpUserRegistry.supportsEventType
(ClassSE<? extends ApplicationEvent> eventType)