本文整理汇总了Java中com.fasterxml.jackson.core.json.PackageVersion.VERSION属性的典型用法代码示例。如果您正苦于以下问题:Java PackageVersion.VERSION属性的具体用法?Java PackageVersion.VERSION怎么用?Java PackageVersion.VERSION使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.fasterxml.jackson.core.json.PackageVersion
的用法示例。
在下文中一共展示了PackageVersion.VERSION属性的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ApiServerChannelInitializer
@Inject
public ApiServerChannelInitializer(ObjectMapper objectMapper,
ApiProtocolSwitcher apiProtocolSwitcher,
// ObservableEncoder rxjavaHandler,
GeneratedJaxRsModuleHandler jaxRsModuleHandler) {
this.apiProtocolSwitcher = apiProtocolSwitcher;
// this.rxjavaHandler = rxjavaHandler;
this.jaxRsHandlers = jaxRsModuleHandler;
SimpleModule nettyModule = new SimpleModule("Netty", PackageVersion.VERSION);
nettyModule.addSerializer(new ByteBufSerializer());
objectMapper.registerModule(nettyModule);
// TODO: allow customization of the thread pool!
// rxJavaGroup = new DefaultEventExecutorGroup(4, new DefaultThreadFactory("rxjava"));
jaxRsGroup = new DefaultEventExecutorGroup(Runtime.getRuntime().availableProcessors(),
new DefaultThreadFactory("jax-rs"));
}
示例2: ApiServerChannelInitializer
@Inject
public ApiServerChannelInitializer(ObjectMapper objectMapper,
ApiProtocolSwitcher apiProtocolSwitcher,
SecurityManager securityManager,
GeneratedJaxRsModuleHandler jaxRsModuleHandler) {
this.apiProtocolSwitcher = apiProtocolSwitcher;
this.jaxRsHandlers = jaxRsModuleHandler;
this.shiroHandler = new ShiroHandler(securityManager);
this.userLoggingHandler = new UserLoggingHandler();
SimpleModule nettyModule = new SimpleModule("Netty", PackageVersion.VERSION);
nettyModule.addSerializer(new ByteBufSerializer());
objectMapper.registerModule(nettyModule);
}
示例3: version
public Version version()
{
return PackageVersion.VERSION;
}
示例4: version
@Override
public Version version() {
return PackageVersion.VERSION;
}
示例5: version
/**
* Implemented with standard version number detection algorithm, typically using
* a simple generated class, with information extracted from Maven project file
* during build.
*/
@Override public Version version() { return PackageVersion.VERSION; }
示例6: version
@Override public Version version() { return PackageVersion.VERSION; }