jdk/src/java.naming/share/classes/javax/naming/ldap/UnsolicitedNotificationEvent.java
changeset 32029 a5538163e144
parent 25859 3317bb8137f4
equal deleted inserted replaced
32028:c5afcee4ff51 32029:a5538163e144
    47      * @serial
    47      * @serial
    48      */
    48      */
    49     private UnsolicitedNotification notice;
    49     private UnsolicitedNotification notice;
    50 
    50 
    51     /**
    51     /**
    52      * Constructs a new instance of <tt>UnsolicitedNotificationEvent</tt>.
    52      * Constructs a new instance of {@code UnsolicitedNotificationEvent}.
    53      *
    53      *
    54      * @param src The non-null source that fired the event.
    54      * @param src The non-null source that fired the event.
    55      * @param notice The non-null unsolicited notification.
    55      * @param notice The non-null unsolicited notification.
    56      */
    56      */
    57     public UnsolicitedNotificationEvent(Object src,
    57     public UnsolicitedNotificationEvent(Object src,
    69     public UnsolicitedNotification getNotification() {
    69     public UnsolicitedNotification getNotification() {
    70         return notice;
    70         return notice;
    71     }
    71     }
    72 
    72 
    73     /**
    73     /**
    74      * Invokes the <tt>notificationReceived()</tt> method on
    74      * Invokes the {@code notificationReceived()} method on
    75      * a listener using this event.
    75      * a listener using this event.
    76      * @param listener The non-null listener on which to invoke
    76      * @param listener The non-null listener on which to invoke
    77      * <tt>notificationReceived</tt>.
    77      *        {@code notificationReceived}.
    78      */
    78      */
    79     public void dispatch(UnsolicitedNotificationListener listener) {
    79     public void dispatch(UnsolicitedNotificationListener listener) {
    80         listener.notificationReceived(this);
    80         listener.notificationReceived(this);
    81     }
    81     }
    82 
    82