org.tubo.exception.springimpl
Class SpringExceptiomManagerImpl

java.lang.Object
  extended by org.tubo.exception.baseimpl.BaseExceptionManagerImpl
      extended by org.tubo.exception.springimpl.SpringExceptiomManagerImpl
All Implemented Interfaces:
org.springframework.beans.factory.BeanFactoryAware, ExceptionManager

public class SpringExceptiomManagerImpl
extends BaseExceptionManagerImpl
implements org.springframework.beans.factory.BeanFactoryAware

Created: Sep 28, 2006, 12:42:01 PM Last Modification Date: $Date: 2006-10-19 12:11:35 -0300 (Thu, 19 Oct 2006) $

Version:
$Revision: 17 $
Author:
maldito_orco (maldito_orco@users.sourceforge.net)

Nested Class Summary
 
Nested classes/interfaces inherited from class org.tubo.exception.baseimpl.BaseExceptionManagerImpl
BaseExceptionManagerImpl.Rank
 
Field Summary
static java.lang.String RCS_ID
           
 
Constructor Summary
SpringExceptiomManagerImpl()
           
 
Method Summary
 TuboException getException(java.lang.String exceptionId, java.lang.String message, java.lang.Throwable cause)
          I take a bad design desision, base on the supposition that message and cause on a Throwable can be changed late.
 void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
           
 
Methods inherited from class org.tubo.exception.baseimpl.BaseExceptionManagerImpl
addRank, getException, getException, getException, getException, getException, getException, getException, getException, getException, setResourceManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RCS_ID

public static final java.lang.String RCS_ID
See Also:
Constant Field Values
Constructor Detail

SpringExceptiomManagerImpl

public SpringExceptiomManagerImpl()
Method Detail

setBeanFactory

public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
Specified by:
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware

getException

public TuboException getException(java.lang.String exceptionId,
                                  java.lang.String message,
                                  java.lang.Throwable cause)
I take a bad design desision, base on the supposition that message and cause on a Throwable can be changed late. Because that and that spring can't create a bean instance based on Constructor parameters, then I need to recreate the bean instance based on Constructor.

Specified by:
getException in interface ExceptionManager
Overrides:
getException in class BaseExceptionManagerImpl
Parameters:
exceptionId -
message -
cause -
Returns:
an exception instance identified by exceptionId


Copyright © 2004-2007 Tubo. All Rights Reserved.