com.consol.citrus.xml.namespace
Class NamespaceContextBeanPostProcessor

java.lang.Object
  extended by com.consol.citrus.xml.namespace.NamespaceContextBeanPostProcessor
All Implemented Interfaces:
org.springframework.beans.factory.config.BeanPostProcessor

public class NamespaceContextBeanPostProcessor
extends Object
implements org.springframework.beans.factory.config.BeanPostProcessor

Post processing all test actions and injecting central NamespaceContextBuilder into VariableExtractor instances in ReceiveMessageAction. VariableExtractor is not in Spring BeanContainer and therefore can not autowire NamespaceContextBuilder as usual.

Author:
Christoph Deppisch

Constructor Summary
NamespaceContextBeanPostProcessor()
           
 
Method Summary
 Object postProcessAfterInitialization(Object bean, String beanName)
          Checks for VariableExtractor instances and injects NamespaceContextBuilder where applicable.
 Object postProcessBeforeInitialization(Object bean, String beanName)
          Just return the bean instance - do nothing here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamespaceContextBeanPostProcessor

public NamespaceContextBeanPostProcessor()
Method Detail

postProcessAfterInitialization

public Object postProcessAfterInitialization(Object bean,
                                             String beanName)
                                      throws org.springframework.beans.BeansException
Checks for VariableExtractor instances and injects NamespaceContextBuilder where applicable.

Specified by:
postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
Throws:
org.springframework.beans.BeansException

postProcessBeforeInitialization

public Object postProcessBeforeInitialization(Object bean,
                                              String beanName)
                                       throws org.springframework.beans.BeansException
Just return the bean instance - do nothing here.

Specified by:
postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
Throws:
org.springframework.beans.BeansException


Copyright © 2008-2013 ConSol* Consulting&Solutions GmbH. All Rights Reserved.