ch.elca.el4j.services.exceptionhandler
Class AbstractExceptionHandlerFactoryBean

java.lang.Object
  extended by org.springframework.aop.framework.ProxyConfig
      extended by org.springframework.aop.framework.AdvisedSupport
          extended by org.springframework.aop.framework.ProxyCreatorSupport
              extended by ch.elca.el4j.services.exceptionhandler.AbstractExceptionHandlerFactoryBean
All Implemented Interfaces:
Serializable, Advised, TargetClassAware, FactoryBean, InitializingBean
Direct Known Subclasses:
ContextExceptionHandlerFactoryBean, SafetyFacadeFactoryBean

public abstract class AbstractExceptionHandlerFactoryBean
extends ProxyCreatorSupport
implements FactoryBean, InitializingBean

Convenience factory to create exception handler proxies.

Author:
Andreas Bur (ABU)
See Also:
Serialized Form
File-location:
AbstractExceptionHandlerFactoryBean
Last check-in date:
2009-08-04 13:59:45 +0200 (Di, 04. Aug 2009) by swismer for revision 3873

Field Summary
 
Fields inherited from class org.springframework.aop.framework.AdvisedSupport
EMPTY_TARGET_SOURCE
 
Constructor Summary
AbstractExceptionHandlerFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
          
protected abstract  AbstractExceptionHandlerInterceptor createExceptionHandlerInterceptor()
           
protected  TargetSource createTargetSource(Object target)
          Creates a TargetSource for the given object or just casts it, if it's already a TargetSoucre.
 Object getObject()
          
 Class getObjectType()
          
 boolean isSingleton()
          
 void setDefaultBehaviourConsume(boolean defaultBehaviourConsume)
           
 void setForwardSignatureExceptions(boolean forwardSignatureExceptions)
           
 void setHandleRTSignatureExceptions(boolean handleRTSignatureExceptions)
           
 void setSingleton(boolean singleton)
          Sets whether the factory returns a singleton proxy.
 void setTarget(Object target)
          Sets the proxy's target, which is either the target bean or an instance of TargetSource.
 
Methods inherited from class org.springframework.aop.framework.ProxyCreatorSupport
addListener, adviceChanged, createAopProxy, getAopProxyFactory, isActive, removeListener, setAopProxyFactory
 
Methods inherited from class org.springframework.aop.framework.AdvisedSupport
addAdvice, addAdvice, addAdvisor, addAdvisor, addAdvisors, addAdvisors, addAllAdvisors, addInterface, adviceIncluded, copyConfigurationFrom, copyConfigurationFrom, countAdvicesOfType, getAdvisorChainFactory, getAdvisors, getAdvisorsInternal, getInterceptorsAndDynamicInterceptionAdvice, getProxiedInterfaces, getTargetClass, getTargetSource, indexOf, indexOf, isInterfaceProxied, isPreFiltered, removeAdvice, removeAdvisor, removeAdvisor, removeInterface, replaceAdvisor, setAdvisorChainFactory, setInterfaces, setPreFiltered, setTargetClass, setTargetSource, toProxyConfigString, toString, updateAdvisorArray
 
Methods inherited from class org.springframework.aop.framework.ProxyConfig
copyFrom, isExposeProxy, isFrozen, isOpaque, isOptimize, isProxyTargetClass, setExposeProxy, setFrozen, setOpaque, setOptimize, setProxyTargetClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.aop.framework.Advised
isExposeProxy, isFrozen, isProxyTargetClass, setExposeProxy
 

Constructor Detail

AbstractExceptionHandlerFactoryBean

public AbstractExceptionHandlerFactoryBean()
Method Detail

setTarget

public void setTarget(Object target)
Sets the proxy's target, which is either the target bean or an instance of TargetSource.

Overrides:
setTarget in class AdvisedSupport
Parameters:
target - The target to set.

setDefaultBehaviourConsume

public void setDefaultBehaviourConsume(boolean defaultBehaviourConsume)
See Also:
AbstractExceptionHandlerInterceptor.setDefaultBehaviourConsume(boolean)

setForwardSignatureExceptions

public void setForwardSignatureExceptions(boolean forwardSignatureExceptions)
See Also:
AbstractExceptionHandlerInterceptor.setForwardSignatureExceptions(boolean)

setHandleRTSignatureExceptions

public void setHandleRTSignatureExceptions(boolean handleRTSignatureExceptions)
See Also:
AbstractExceptionHandlerInterceptor.setHandleRTSignatureExceptions(boolean)

setSingleton

public void setSingleton(boolean singleton)
Sets whether the factory returns a singleton proxy.

Parameters:
singleton - Whether to create a singleton proxy.

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception

Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

getObject

public Object getObject()
                 throws Exception

Specified by:
getObject in interface FactoryBean
Throws:
Exception

getObjectType

public Class getObjectType()

Specified by:
getObjectType in interface FactoryBean

isSingleton

public boolean isSingleton()

Specified by:
isSingleton in interface FactoryBean

createTargetSource

protected TargetSource createTargetSource(Object target)
Creates a TargetSource for the given object or just casts it, if it's already a TargetSoucre.

Parameters:
target - The object to wrap into a TargetSource.
Returns:
Returns a TargetSource pointing to the given target parameter.

createExceptionHandlerInterceptor

protected abstract AbstractExceptionHandlerInterceptor createExceptionHandlerInterceptor()
Returns:
Returns the exception handler interceptor that is installed in the proxy created by this factory.


Copyright © 2005-2011 ELCA. All Rights Reserved.