本文整理汇总了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"));
}
示例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);
}
示例3: testPackageVersionMatches
import com.fasterxml.jackson.core.json.PackageVersion; //导入依赖的package包/类
public void testPackageVersionMatches() {
assertEquals(PackageVersion.VERSION, VersionUtil.versionFor(UTF8JsonGenerator.class));
}
示例4: version
import com.fasterxml.jackson.core.json.PackageVersion; //导入依赖的package包/类
public Version version()
{
return PackageVersion.VERSION;
}
示例5: version
import com.fasterxml.jackson.core.json.PackageVersion; //导入依赖的package包/类
@Override
public Version version() {
return PackageVersion.VERSION;
}
示例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; }
示例7: version
import com.fasterxml.jackson.core.json.PackageVersion; //导入依赖的package包/类
@Override public Version version() { return PackageVersion.VERSION; }