当前位置: 首页>>代码示例>>Java>>正文


Java PackageVersion.VERSION属性代码示例

本文整理汇总了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"));
    }
 
开发者ID:kalixia,项目名称:kha,代码行数:16,代码来源:ApiServerChannelInitializer.java

示例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);
}
 
开发者ID:kalixia,项目名称:kha,代码行数:13,代码来源:ApiServerChannelInitializer.java

示例3: version

public Version version()
{
  return PackageVersion.VERSION;
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:4,代码来源:JsonFactory.java

示例4: version

@Override
public Version version() {
    return PackageVersion.VERSION;
}
 
开发者ID:BFergerson,项目名称:Beam,代码行数:4,代码来源:ParserBase.java

示例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; }
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:6,代码来源:GeneratorBase.java

示例6: version

@Override public Version version() { return PackageVersion.VERSION; } 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:1,代码来源:ParserBase.java


注:本文中的com.fasterxml.jackson.core.json.PackageVersion.VERSION属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。