本文整理匯總了Java中org.apache.cxf.Bus.DEFAULT_BUS_ID屬性的典型用法代碼示例。如果您正苦於以下問題:Java Bus.DEFAULT_BUS_ID屬性的具體用法?Java Bus.DEFAULT_BUS_ID怎麽用?Java Bus.DEFAULT_BUS_ID使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類org.apache.cxf.Bus
的用法示例。
在下文中一共展示了Bus.DEFAULT_BUS_ID屬性的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: springBus
/**
* 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;
}
示例2: springBus
@Bean(name = Bus.DEFAULT_BUS_ID)
public SpringBus springBus() {
return new SpringBus();
}