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


Java PackageVersion类代码示例

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


PackageVersion类属于com.fasterxml.jackson.core.json包,在下文中一共展示了PackageVersion类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: ApiServerChannelInitializer

import com.fasterxml.jackson.core.json.PackageVersion; //导入依赖的package包/类
@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,代码行数:17,代码来源:ApiServerChannelInitializer.java

示例2: ApiServerChannelInitializer

import com.fasterxml.jackson.core.json.PackageVersion; //导入依赖的package包/类
@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,代码行数:14,代码来源:ApiServerChannelInitializer.java

示例3: testPackageVersionMatches

import com.fasterxml.jackson.core.json.PackageVersion; //导入依赖的package包/类
public void testPackageVersionMatches() {
    assertEquals(PackageVersion.VERSION, VersionUtil.versionFor(UTF8JsonGenerator.class));
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:4,代码来源:TestVersionUtil.java

示例4: version

import com.fasterxml.jackson.core.json.PackageVersion; //导入依赖的package包/类
public Version version()
{
  return PackageVersion.VERSION;
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:5,代码来源:JsonFactory.java

示例5: version

import com.fasterxml.jackson.core.json.PackageVersion; //导入依赖的package包/类
@Override
public Version version() {
    return PackageVersion.VERSION;
}
 
开发者ID:BFergerson,项目名称:Beam,代码行数:5,代码来源:ParserBase.java

示例6: version

import com.fasterxml.jackson.core.json.PackageVersion; //导入依赖的package包/类
/**
 * 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,代码行数:7,代码来源:GeneratorBase.java

示例7: version

import com.fasterxml.jackson.core.json.PackageVersion; //导入依赖的package包/类
@Override public Version version() { return PackageVersion.VERSION; } 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:2,代码来源:ParserBase.java


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