Class SpringBusFactoryBean
- java.lang.Object
-
- org.apache.camel.component.cxf.spring.SpringBusFactoryBean
-
- All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<org.apache.cxf.Bus>
,org.springframework.beans.factory.SmartFactoryBean<org.apache.cxf.Bus>
public class SpringBusFactoryBean extends Object implements org.springframework.beans.factory.SmartFactoryBean<org.apache.cxf.Bus>
This factoryBean which can help user to choice CXF components that he wants bus to load without needing to import bunch of CXF packages in OSGi bundle, as the SpringBusFactory will try to load the bus extensions with the CXF bundle classloader. You can set the CXF extensions files with ; as the separator to create a bus. NOTE: when you set the includeDefaultBus value to be false, you should aware that the CXF bus will automatically load all the extension in CXF 2.4.x by default. You can still specify the spring extension file in the cfgFiles list and it will override the extensions which is load by CXF bus.
-
-
Constructor Summary
Constructors Constructor Description SpringBusFactoryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.cxf.Bus
getObject()
Class<?>
getObjectType()
boolean
isEagerInit()
boolean
isPrototype()
boolean
isSingleton()
void
setCfgFiles(String cfgFiles)
void
setIncludeDefaultBus(boolean includeDefaultBus)
-
-
-
Method Detail
-
getObject
public org.apache.cxf.Bus getObject() throws Exception
- Specified by:
getObject
in interfaceorg.springframework.beans.factory.FactoryBean<org.apache.cxf.Bus>
- Throws:
Exception
-
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<org.apache.cxf.Bus>
-
setCfgFiles
public void setCfgFiles(String cfgFiles)
-
setIncludeDefaultBus
public void setIncludeDefaultBus(boolean includeDefaultBus)
-
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interfaceorg.springframework.beans.factory.FactoryBean<org.apache.cxf.Bus>
-
isEagerInit
public boolean isEagerInit()
- Specified by:
isEagerInit
in interfaceorg.springframework.beans.factory.SmartFactoryBean<org.apache.cxf.Bus>
-
isPrototype
public boolean isPrototype()
- Specified by:
isPrototype
in interfaceorg.springframework.beans.factory.SmartFactoryBean<org.apache.cxf.Bus>
-
-