org.springframework.richclient.exceptionhandling
Class EmailNotifierErrorReporter

java.lang.Object
  extended by org.springframework.richclient.exceptionhandling.EmailNotifierErrorReporter
All Implemented Interfaces:
org.jdesktop.swingx.error.ErrorReporter, BeanNameAware, InitializingBean

public class EmailNotifierErrorReporter
extends Object
implements org.jdesktop.swingx.error.ErrorReporter, BeanNameAware, InitializingBean

This email reporter can be added as ErrorReporter to the JXErrorDialogExceptionHandler. The email reporter uses the JDIC ( https://jdic.dev.java.net/) library to access your mail client. To use and deploy this correctly, you need to have the correct native libraries for your platform and have them added to your VM startup (-Djava.library.path).

The following libs are needed:

During development, maven can add the correct jars to your classpath by using a profile that is os specific (see pom.xml of spring-richclient-jdk5). Note that you still have to add the native libraries to your environment. You can do this by unpacking the jdic-native-* file and setting the -Djava.library.path to that directory.

In production the same setup should be used. A webstart app should use os specific and native dependencies to have the correct jars downloaded and the native library unpacked and added to the environment.

Author:
Jan Hoskens

Constructor Summary
EmailNotifierErrorReporter()
           
 
Method Summary
 void afterPropertiesSet()
           
 String getId()
           
protected  String getStackTraceString(Throwable t)
           
 void reportError(org.jdesktop.swingx.error.ErrorInfo info)
           
 void setBeanName(String name)
           
 void setId(String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmailNotifierErrorReporter

public EmailNotifierErrorReporter()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
Specified by:
afterPropertiesSet in interface InitializingBean

reportError

public void reportError(org.jdesktop.swingx.error.ErrorInfo info)
                 throws NullPointerException
Specified by:
reportError in interface org.jdesktop.swingx.error.ErrorReporter
Throws:
NullPointerException

getStackTraceString

protected String getStackTraceString(Throwable t)

getId

public String getId()

setId

public void setId(String id)

setBeanName

public void setBeanName(String name)
Specified by:
setBeanName in interface BeanNameAware


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.