org.polyforms.di.spring
Class AbstractMethodOverrideProcessor

java.lang.Object
  extended by org.polyforms.di.spring.AbstractMethodOverrideProcessor
All Implemented Interfaces:
org.springframework.beans.factory.config.BeanFactoryPostProcessor

public final class AbstractMethodOverrideProcessor
extends Object
implements org.springframework.beans.factory.config.BeanFactoryPostProcessor

BeanFactoryPostProcessor to add method overrides for instantiation interfaces or abstract classes, and all invocation of methods in that classes of interfaces would be implemented with an aspect. The typical usage of that incldes two cases: The typical usage includes two cases:

As there is no default implementation for abstract methods in interfaces or abstract classes, use an interceptor to take over the execution of these methods, otherwise, exceptions would be thrown by invocation of these methods.

Since:
1.0
Author:
Kuisong Tong

Nested Class Summary
protected static class AbstractMethodOverrideProcessor.UnsupportedMethodReplacer
           
 
Constructor Summary
AbstractMethodOverrideProcessor()
           
 
Method Summary
 void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMethodOverrideProcessor

public AbstractMethodOverrideProcessor()
Method Detail

postProcessBeanFactory

public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)

Specified by:
postProcessBeanFactory in interface org.springframework.beans.factory.config.BeanFactoryPostProcessor


Copyright © 2010-2011 Polyforms Framework. All Rights Reserved.