Package org.apache.cxf.bus.spring
Class BusWiringBeanFactoryPostProcessor
- java.lang.Object
-
- org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor
-
- All Implemented Interfaces:
org.springframework.beans.factory.config.BeanFactoryPostProcessor
public class BusWiringBeanFactoryPostProcessor extends Object implements org.springframework.beans.factory.config.BeanFactoryPostProcessor
BeanFactoryPostProcessor that looks for any bean definitions that have theAbstractBeanDefinitionParser.WIRE_BUS_ATTRIBUTEattribute set. If the attribute has the valueBusWiringType.PROPERTYthen it attaches their "bus" property to the bean called "cxf". If the attribute has the valueBusWiringType.CONSTRUCTORthen it shifts any existing indexed constructor arguments one place to the right and adds a reference to "cxf" as the first constructor argument. This processor is intended to operate on beans defined via Spring namespace support which require a reference to the CXF bus.
-
-
Constructor Summary
Constructors Constructor Description BusWiringBeanFactoryPostProcessor()BusWiringBeanFactoryPostProcessor(String n)BusWiringBeanFactoryPostProcessor(Bus b)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BusaddBus(org.springframework.context.ApplicationContext ctx, String name)static BusaddDefaultBus(org.springframework.context.ApplicationContext ctx)voidpostProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory factory)
-
-
-
Method Detail
-
postProcessBeanFactory
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory factory)
- Specified by:
postProcessBeanFactoryin interfaceorg.springframework.beans.factory.config.BeanFactoryPostProcessor
-
addDefaultBus
public static Bus addDefaultBus(org.springframework.context.ApplicationContext ctx)
-
-