简体   繁体   English

Apache CXF如何在技术上与Spring框架集成

[英]How Apache CXF technically integrates with Spring Framework

I know I could use Apache CXF with Spring by declaring certain CXF beans, but want to know how these framework technically integrates with each other. 我知道可以通过声明某些CXF Bean将Apache CXF与Spring结合使用,但是想知道这些框架在技术上如何相互集成。

Does CXF libraries provide some service provider interface known to Spring, so Spring scans for this, instantiates the service and takes control of it? CXF库是否提供Spring已知的某些服务提供程序接口 ,因此Spring对此进行扫描,实例化服务并对其进行控制? Or does CXF implement some other standard mechanism for Spring integration? 还是CXF为Spring集成实现了其他标准机制? If so, what is this standard? 如果是这样,这个标准是什么?

Or does CXF library expose Spring annotations / bean declarations to participate in the Spring configuration when in the classpath? 还是在类路径中,CXF库是否公开Spring注释/ bean声明以参与Spring配置?

Where I can find the exact sequence of how Spring takes control of CXF from having both of these frameworks on classpath and the necessary configuration to both of them running together? 从类路径上的这两个框架以及它们一起运行所需的配置中,我在哪里可以找到Spring如何控制CXF的确切顺序? Which configuration is scanned in which side, what API's are called by which and so on. 在哪一侧扫描哪个配置,哪个调用哪个API等。

CXF's is the Bus and its default implementation is SpringBusFactory which scans for certain Spring xml bean configuration files. CXF是Bus,其默认实现是SpringBusFactory,它将扫描某些Spring xml bean配置文件。 You can find more information in http://cxf.apache.org/docs/cxf-architecture.html#CXFArchitecture-Bus or by looking at the sourcecode: https://github.com/apache/cxf/blob/master/core/src/main/java/org/apache/cxf/bus/spring/SpringBusFactory.java 您可以在http://cxf.apache.org/docs/cxf-architecture.html#CXFArchitecture-Bus或查看源代码中找到更多信息: https : //github.com/apache/cxf/blob/master/核心/src/main/java/org/apache/cxf/bus/spring/SpringBusFactory.java

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM