• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java SpringBus类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.apache.cxf.bus.spring.SpringBus的典型用法代码示例。如果您正苦于以下问题:Java SpringBus类的具体用法?Java SpringBus怎么用?Java SpringBus使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



SpringBus类属于org.apache.cxf.bus.spring包,在下文中一共展示了SpringBus类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: serverEndPoint

import org.apache.cxf.bus.spring.SpringBus; //导入依赖的package包/类
@Bean
public Server serverEndPoint(final SpringBus bus)
{
	final JacksonJaxbJsonProvider jacksonJaxbJsonProvider = new JacksonJaxbJsonProvider();

	final JMSConfigFeature jmsConfigFeature = createJMSConfigFeature();

	final JAXRSServerFactoryBean svrFactory = new JAXRSServerFactoryBean();
	svrFactory.setBus(bus);
	svrFactory.setResourceClasses(AgentSync.class);

	svrFactory.getFeatures().add(jmsConfigFeature);
	svrFactory.getFeatures().add(loggingFeature);

	svrFactory.setProvider(jacksonJaxbJsonProvider);
	svrFactory.setAddress("/");
	svrFactory.setTransportId("http://cxf.apache.org/transports/jms");

	final Server server = svrFactory.create();
	return server;
}
 
开发者ID:metasfresh,项目名称:metasfresh-procurement-webui,代码行数:22,代码来源:SyncConfiguration.java


示例2: springBus

import org.apache.cxf.bus.spring.SpringBus; //导入依赖的package包/类
/**
 * Help by: http://stackoverflow.com/a/31988136
 *
 * logFeature.initialize(springBus) is not needed, because during the init of bus it will call f.initialize(this)
 * in {@link org.apache.cxf.bus.extension.ExtensionManagerBus#initializeFeatures()} anyway
 */
@Bean(name = Bus.DEFAULT_BUS_ID, destroyMethod = "shutdown")
public SpringBus springBus() {
    SpringBus bus = new SpringBus();
    bus.getFeatures().add(new LoggingFeature()); // Log incoming/outgoing messages
    return bus;
}
 
开发者ID:RWTH-i5-IDSG,项目名称:steve-plugsurfing,代码行数:13,代码来源:OcppConfiguration.java


示例3: counterRepository

import org.apache.cxf.bus.spring.SpringBus; //导入依赖的package包/类
@Bean
public CounterRepository counterRepository(SpringBus cxf) {
    CounterRepository repository = new CounterRepository();
    repository.setBus(cxf);
    return repository;
}
 
开发者ID:przodownikR1,项目名称:cxf_over_jms_kata,代码行数:7,代码来源:CxfConfig.java


示例4: instrumentationManager

import org.apache.cxf.bus.spring.SpringBus; //导入依赖的package包/类
@Bean
public InstrumentationManager instrumentationManager(SpringBus cxf) {
    InstrumentationManagerImpl impl = new InstrumentationManagerImpl();
    impl.setEnabled(true);
    impl.setBus(cxf);
    impl.setUsePlatformMBeanServer(true);
    return impl;
}
 
开发者ID:przodownikR1,项目名称:cxf_over_jms_kata,代码行数:9,代码来源:CxfConfig.java


示例5: configureCxfBus

import org.apache.cxf.bus.spring.SpringBus; //导入依赖的package包/类
@Bean(name = "cxf", destroyMethod = "shutdown")
public SpringBus configureCxfBus() {
    final SpringBus bus = new SpringBus();
    List<Feature> features = new ArrayList<>();
    features.add(loggingFeature());
    bus.setFeatures(features);
    bus.setId("cxf");

    CamelTransportFactory camelTransportFactory = new CamelTransportFactory();
    camelTransportFactory.setCamelContext(camelContext);
    camelTransportFactory.setBus(bus);

    // bus.getExtension(CamelTransportFactory.class).setCamelContext(camelContext);
    return bus;
}
 
开发者ID:przodownikR1,项目名称:cxf_over_jms_kata,代码行数:16,代码来源:CxfConfig.java


示例6: jaxRsServer

import org.apache.cxf.bus.spring.SpringBus; //导入依赖的package包/类
@Bean
public Server jaxRsServer(){
    List<ResourceProvider> resourceProviders = new LinkedList<ResourceProvider>();
    for (String beanName : ctx.getBeanDefinitionNames()) {
        if (ctx.findAnnotationOnBean(beanName, Path.class) != null) {
            SpringResourceFactory resourceFactory = new SpringResourceFactory(beanName);
            resourceFactory.setApplicationContext(ctx);
            resourceProviders.add(resourceFactory);
        }
    }

    JAXRSServerFactoryBean factory = new JAXRSServerFactoryBean();
    factory.setBus(ctx.getBean(SpringBus.class));

    JacksonJsonProvider jacksonJsonProvider = new JacksonJsonProvider();
    ObjectMapper objectMapper = new ObjectMapper();
    //set up ISO 8601 date/time stamp format:
    final DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:sss'Z'");
    df.setTimeZone(TimeZone.getTimeZone("UTC"));
    objectMapper.setDateFormat(df);
    jacksonJsonProvider.setMapper(objectMapper);

    factory.setProviders(Arrays.asList(jacksonJsonProvider, new DefaultExceptionMapper()));
    factory.setResourceProviders(resourceProviders);

    return factory.create();
}
 
开发者ID:fernandocamargoti,项目名称:JavaMagazineRESTfulAPI,代码行数:28,代码来源:JaxRsServerConfig.java


示例7: springBus

import org.apache.cxf.bus.spring.SpringBus; //导入依赖的package包/类
@Bean(name = SpringBus.DEFAULT_BUS_ID)
public SpringBus springBus() {

    return new SpringBus();
}
 
开发者ID:uavorg,项目名称:uavstack,代码行数:6,代码来源:CxfConfig.java


示例8: springBus

import org.apache.cxf.bus.spring.SpringBus; //导入依赖的package包/类
@Bean(name = "cxf")
public SpringBus springBus() {

  return new SpringBus();
}
 
开发者ID:oasp,项目名称:oasp-tutorial-sources,代码行数:6,代码来源:ServiceConfig.java


示例9: cxf

import org.apache.cxf.bus.spring.SpringBus; //导入依赖的package包/类
/**
 * Creates the cxf bus. Note that "cxf is the bean's default name. If you give it a different name, you need to make it know to e.g. the CXFServlet.
 *
 * @return
 */
@Bean(name = "cxf")
public SpringBus cxf()
{
	return new SpringBus();
}
 
开发者ID:metasfresh,项目名称:metasfresh-commons-cxf,代码行数:11,代码来源:CxfConfiguration.java


示例10: springBus

import org.apache.cxf.bus.spring.SpringBus; //导入依赖的package包/类
@Bean(name = Bus.DEFAULT_BUS_ID)
public SpringBus springBus() {
    return new SpringBus();
}
 
开发者ID:jonashackt,项目名称:tutorial-soap-spring-boot-cxf,代码行数:5,代码来源:WebServiceConfiguration.java


示例11: cxfBus

import org.apache.cxf.bus.spring.SpringBus; //导入依赖的package包/类
@Bean
public SpringBus cxfBus()
{
	return new SpringBus();
}
 
开发者ID:metasfresh,项目名称:metasfresh-procurement-webui,代码行数:6,代码来源:SyncConfiguration.java


示例12: cxf

import org.apache.cxf.bus.spring.SpringBus; //导入依赖的package包/类
@Bean(destroyMethod = "shutdown")
public SpringBus cxf() {
	System.out.println( "CxfConfig: cxf bean" );
    return new SpringBus();
}
 
开发者ID:amoldavsky,项目名称:restful-api-cxf-spring-java,代码行数:6,代码来源:CxfConfig.java


示例13: cxf

import org.apache.cxf.bus.spring.SpringBus; //导入依赖的package包/类
@Bean( destroyMethod = "shutdown" )
public SpringBus cxf() {
    return new SpringBus();
}
 
开发者ID:wso2,项目名称:product-ei,代码行数:5,代码来源:CoffeeConfig.java


示例14: cxf

import org.apache.cxf.bus.spring.SpringBus; //导入依赖的package包/类
@Bean(destroyMethod = "shutdown", name = "cxf")
public SpringBus cxf() {
  return new SpringBus();
}
 
开发者ID:basileus-v,项目名称:rest-api-template,代码行数:5,代码来源:AppConfig.java


示例15: cxf

import org.apache.cxf.bus.spring.SpringBus; //导入依赖的package包/类
@Bean( destroyMethod = "shutdown" )
public SpringBus cxf() {
	return new SpringBus();
}
 
开发者ID:raphaeljolivet,项目名称:java2typescript,代码行数:5,代码来源:AppConfig.java



注:本文中的org.apache.cxf.bus.spring.SpringBus类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java HandshakeTimeoutException类代码示例发布时间:2022-05-21
下一篇:
Java IWorkspaceDescription类代码示例发布时间:2022-05-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap