本文整理匯總了Java中com.googlecode.openbeans.ExceptionListener類的典型用法代碼示例。如果您正苦於以下問題:Java ExceptionListener類的具體用法?Java ExceptionListener怎麽用?Java ExceptionListener使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ExceptionListener類屬於com.googlecode.openbeans包,在下文中一共展示了ExceptionListener類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: XMLDecoder
import com.googlecode.openbeans.ExceptionListener; //導入依賴的package包/類
public XMLDecoder(InputStream inputStream, Object owner,
ExceptionListener listener, ClassLoader cl) {
this.inputStream = inputStream;
this.owner = owner;
this.listener = (listener == null) ? new DefaultExceptionListener()
: listener;
defaultClassLoader = cl;
}
示例2: getExceptionListener
import com.googlecode.openbeans.ExceptionListener; //導入依賴的package包/類
/**
* Returns the exception listener.
*
* @return the exception listener
*/
public ExceptionListener getExceptionListener() {
return listener;
}
示例3: setExceptionListener
import com.googlecode.openbeans.ExceptionListener; //導入依賴的package包/類
/**
* Sets the exception listener.
*
* @param listener
* an exception listener
*/
public void setExceptionListener(ExceptionListener listener) {
if (listener != null) {
this.listener = listener;
}
}
示例4: getExceptionListener
import com.googlecode.openbeans.ExceptionListener; //導入依賴的package包/類
/**
* Returns the exception listener of this encoder.
* <p>
* An encoder always have a non-null exception listener. A default exception
* listener is used when the encoder is created.
* </p>
*
* @return the exception listener of this encoder
*/
public ExceptionListener getExceptionListener() {
return listener;
}
示例5: setExceptionListener
import com.googlecode.openbeans.ExceptionListener; //導入依賴的package包/類
/**
* Sets the exception listener of this encoder.
*
* @param listener
* the exception listener to set
*/
public void setExceptionListener(ExceptionListener listener) {
this.listener = listener == null ? defaultExListener : listener;
}