JavaTM Platform
Standard Ed. 6

javax.naming.event
클래스 NamingExceptionEvent

java.lang.Object 
  상위를 확장 java.util.EventObject 
      상위를 확장 javax.naming.event.NamingExceptionEvent
모든 구현된 인터페이스:
Serializable


public class NamingExceptionEvent
extends EventObject

이 클래스는,NamingEvent 를 통지하는 청취자의 정보를 수집하는 순서/프로세스가 NamingException 을 throw 했을 때에, 트리거되는 이벤트를 나타냅니다. 이 이벤트는, 청취자가 사용하고 있는 서버가 addNamingListener() 호출의 나중에 이상종료(ABEND) 했을 경우 등에 throw 됩니다.

도입된 버젼:
1.3
관련 항목:
NamingListener.namingExceptionThrown(javax.naming.event.NamingExceptionEvent) , EventContext , 직렬화 된 형식

필드의 개요
 
클래스 java.util. EventObject 로부터 상속된 필드
source
 
생성자 의 개요
NamingExceptionEvent (EventContext  source, NamingException  exc)
          NamingException 및 예외가 throw 된 문맥을 사용해,NamingExceptionEvent 의 인스턴스를 구축합니다.
 
메소드의 개요
 void dispatch (NamingListener  listener)
          이 이벤트를 사용해, 청취자에게 namingExceptionThrown() 메소드를 호출합니다.
 EventContext getEventContext ()
          이 이벤트를 트리거한 EventContext 를 검출합니다.
 NamingException getException ()
          throw 된 예외를 검출합니다.
 
클래스 java.util. EventObject 로부터 상속된 메소드
getSource , toString
 
클래스 java.lang. Object 로부터 상속된 메소드
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait
 

생성자 의 상세

NamingExceptionEvent

public NamingExceptionEvent(EventContext  source,
                            NamingException  exc)
NamingException 및 예외가 throw 된 문맥을 사용해,NamingExceptionEvent 의 인스턴스를 구축합니다.

파라미터:
source - 예외가 throw 된 null 이외의 문맥
exc - throw 된 null 이외의 NamingException
메소드의 상세

getException

public NamingException  getException()
throw 된 예외를 검출합니다.

반환값:
throw 된 예외

getEventContext

public EventContext  getEventContext()
이 이벤트를 트리거한 EventContext 를 검출합니다. 이것은 EventObject.getSource() 와 같은 객체를 돌려줍니다.

반환값:
이 이벤트를 트리거한 null 이외의 EventContext

dispatch

public void dispatch(NamingListener  listener)
이 이벤트를 사용해, 청취자에게 namingExceptionThrown() 메소드를 호출합니다.

파라미터:
listener - 메소드를 호출하는 청취자의 null 이외의 네이밍 청취자

JavaTM Platform
Standard Ed. 6

버그의 보고와 기능의 요청
한층 더 자세한 API 레퍼런스 및 개발자 문서에 대해서는,Java SE 개발자용 문서를 참조해 주세요. 개발자전용의 상세한 해설, 개념의 개요, 용어의 정의, 버그의 회피책, 및 코드 실례가 포함되어 있습니다.

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.