< prev index next >
src/java.naming/share/classes/javax/naming/event/NamingExceptionEvent.java
Print this page
*** 28,40 ****
import javax.naming.NamingException;
/**
* This class represents an event fired when the procedures/processes
* used to collect information for notifying listeners of
! * <tt>NamingEvent</tt>s threw a <tt>NamingException</tt>.
* This can happen, for example, if the server which the listener is using
! * aborts subsequent to the <tt>addNamingListener()</tt> call.
*
* @author Rosanna Lee
* @author Scott Seligman
*
* @see NamingListener#namingExceptionThrown
--- 28,40 ----
import javax.naming.NamingException;
/**
* This class represents an event fired when the procedures/processes
* used to collect information for notifying listeners of
! * {@code NamingEvent}s threw a {@code NamingException}.
* This can happen, for example, if the server which the listener is using
! * aborts subsequent to the {@code addNamingListener()} call.
*
* @author Rosanna Lee
* @author Scott Seligman
*
* @see NamingListener#namingExceptionThrown
*** 48,63 ****
* @serial
*/
private NamingException exception;
/**
! * Constructs an instance of <tt>NamingExceptionEvent</tt> using
! * the context in which the <tt>NamingException</tt> was thrown and the exception
* that was thrown.
*
* @param source The non-null context in which the exception was thrown.
! * @param exc The non-null <tt>NamingException</tt> that was thrown.
*
*/
public NamingExceptionEvent(EventContext source, NamingException exc) {
super(source);
exception = exc;
--- 48,63 ----
* @serial
*/
private NamingException exception;
/**
! * Constructs an instance of {@code NamingExceptionEvent} using
! * the context in which the {@code NamingException} was thrown and the exception
* that was thrown.
*
* @param source The non-null context in which the exception was thrown.
! * @param exc The non-null {@code NamingException} that was thrown.
*
*/
public NamingExceptionEvent(EventContext source, NamingException exc) {
super(source);
exception = exc;
*** 70,89 ****
public NamingException getException() {
return exception;
}
/**
! * Retrieves the <tt>EventContext</tt> that fired this event.
! * This returns the same object as <tt>EventObject.getSource()</tt>.
! * @return The non-null <tt>EventContext</tt> that fired this event.
*/
public EventContext getEventContext() {
return (EventContext)getSource();
}
/**
! * Invokes the <tt>namingExceptionThrown()</tt> method on
* a listener using this event.
* @param listener The non-null naming listener on which to invoke
* the method.
*/
public void dispatch(NamingListener listener) {
--- 70,89 ----
public NamingException getException() {
return exception;
}
/**
! * Retrieves the {@code EventContext} that fired this event.
! * This returns the same object as {@code EventObject.getSource()}.
! * @return The non-null {@code EventContext} that fired this event.
*/
public EventContext getEventContext() {
return (EventContext)getSource();
}
/**
! * Invokes the {@code namingExceptionThrown()} method on
* a listener using this event.
* @param listener The non-null naming listener on which to invoke
* the method.
*/
public void dispatch(NamingListener listener) {
< prev index next >