public class UnsolicitedNotificationEvent extends EventObject
UnsolicitedNotification
, UnsolicitedNotificationListener
, EventContext.addNamingListener(javax.naming.Name, int, javax.naming.event.NamingListener)
, EventDirContext.addNamingListener(javax.naming.Name, java.lang.String, javax.naming.directory.SearchControls, javax.naming.event.NamingListener)
, EventContext.removeNamingListener(javax.naming.event.NamingListener)
, 直列化された形式source
コンストラクタ | 説明 |
---|---|
UnsolicitedNotificationEvent(Object src, UnsolicitedNotification notice) |
UnsolicitedNotificationEventの新しいインスタンスを構築します。
|
修飾子と型 | メソッド | 説明 |
---|---|---|
void |
dispatch(UnsolicitedNotificationListener listener) |
このイベントを使用して、リスナーでnotificationReceived()メソッドを呼び出します。
|
UnsolicitedNotification |
getNotification() |
非要請通知を返します。
|
getSource, toString
public UnsolicitedNotificationEvent(Object src, UnsolicitedNotification notice)
src
- イベントをトリガーしたnull以外のソース。notice
- null以外の非要請通知。public UnsolicitedNotification getNotification()
public void dispatch(UnsolicitedNotificationListener listener)
listener
- notificationReceivedを呼び出すnull以外のリスナー。 バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。