com.thoughtworks.xstream.XStream.buildMapperDynamically()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(4.6k)|赞(0)|评价(0)|浏览(158)

本文整理了Java中com.thoughtworks.xstream.XStream.buildMapperDynamically()方法的一些代码示例,展示了XStream.buildMapperDynamically()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XStream.buildMapperDynamically()方法的具体详情如下:
包路径:com.thoughtworks.xstream.XStream
类名称:XStream
方法名:buildMapperDynamically

XStream.buildMapperDynamically介绍

暂无

代码示例

代码示例来源:origin: com.thoughtworks.xstream/xstream

mapper = new AttributeMapper(mapper, converterLookup, reflectionProvider);
if (JVM.isVersion(5)) {
  mapper = buildMapperDynamically(
    "com.thoughtworks.xstream.mapper.EnumMapper", new Class[]{Mapper.class},
    new Object[]{mapper});
mapper = new ImmutableTypesMapper(mapper);
if (JVM.isVersion(8)) {
  mapper = buildMapperDynamically("com.thoughtworks.xstream.mapper.LambdaMapper", new Class[]{Mapper.class},
    new Object[]{mapper});
  mapper = buildMapperDynamically(ANNOTATION_MAPPER_TYPE, new Class[]{
    Mapper.class, ConverterRegistry.class, ConverterLookup.class,
    ClassLoaderReference.class, ReflectionProvider.class}, new Object[]{

代码示例来源:origin: apache/servicemix-bundles

mapper = new AttributeMapper(mapper, converterLookup, reflectionProvider);
if (JVM.isVersion(5)) {
  mapper = buildMapperDynamically(
    "com.thoughtworks.xstream.mapper.EnumMapper", new Class[]{Mapper.class},
    new Object[]{mapper});
mapper = new ImmutableTypesMapper(mapper);
if (JVM.isVersion(8)) {
  mapper = buildMapperDynamically("com.thoughtworks.xstream.mapper.LambdaMapper", new Class[]{Mapper.class},
    new Object[]{mapper});
  mapper = buildMapperDynamically(ANNOTATION_MAPPER_TYPE, new Class[]{
    Mapper.class, ConverterRegistry.class, ConverterLookup.class,
    ClassLoaderReference.class, ReflectionProvider.class}, new Object[]{

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream

mapper = new AttributeMapper(mapper, converterLookup, reflectionProvider);
if (JVM.isVersion(5)) {
  mapper = buildMapperDynamically(
    "com.thoughtworks.xstream.mapper.EnumMapper", new Class[]{Mapper.class},
    new Object[]{mapper});
mapper = new ImmutableTypesMapper(mapper);
if (JVM.isVersion(8)) {
  mapper = buildMapperDynamically("com.thoughtworks.xstream.mapper.LambdaMapper", new Class[]{Mapper.class},
    new Object[]{mapper});
  mapper = buildMapperDynamically(ANNOTATION_MAPPER_TYPE, new Class[]{
    Mapper.class, ConverterRegistry.class, ConverterLookup.class,
    ClassLoaderReference.class, ReflectionProvider.class}, new Object[]{

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream-java8

mapper = new AttributeMapper(mapper, converterLookup, reflectionProvider);
if (JVM.isVersion(5)) {
  mapper = buildMapperDynamically(
    "com.thoughtworks.xstream.mapper.EnumMapper", new Class[]{Mapper.class},
    new Object[]{mapper});
mapper = new ImmutableTypesMapper(mapper);
if (JVM.isVersion(8)) {
  mapper = buildMapperDynamically("com.thoughtworks.xstream.mapper.LambdaMapper", new Class[]{Mapper.class},
    new Object[]{mapper});
  mapper = buildMapperDynamically(ANNOTATION_MAPPER_TYPE, new Class[]{
    Mapper.class, ConverterRegistry.class, ConverterLookup.class,
    ClassLoaderReference.class, ReflectionProvider.class}, new Object[]{

代码示例来源:origin: org.jvnet.hudson/xstream

mapper = new AttributeMapper(mapper, converterLookup);
if (JVM.is15()) {
  mapper = buildMapperDynamically(
    "com.thoughtworks.xstream.mapper.EnumMapper", new Class[]{Mapper.class},
    new Object[]{mapper});
mapper = new ImmutableTypesMapper(mapper);
if (JVM.is15()) {
  mapper = buildMapperDynamically(
    ANNOTATION_MAPPER_TYPE,
    new Class[]{Mapper.class, ConverterRegistry.class, ClassLoader.class, ReflectionProvider.class, JVM.class},

代码示例来源:origin: com.haulmont.thirdparty/xstream

mapper = new AttributeMapper(mapper, converterLookup, reflectionProvider);
if (JVM.is15()) {
  mapper = buildMapperDynamically(
    "com.thoughtworks.xstream.mapper.EnumMapper", new Class[]{Mapper.class},
    new Object[]{mapper});
mapper = new ImmutableTypesMapper(mapper);
if (JVM.is15()) {
  mapper = buildMapperDynamically(ANNOTATION_MAPPER_TYPE, new Class[]{
    Mapper.class, ConverterRegistry.class, ConverterLookup.class,
    ClassLoader.class, ReflectionProvider.class, JVM.class}, new Object[]{

代码示例来源:origin: ovea-deprecated/jetty-session-redis

mapper = new AttributeMapper(mapper, converterLookup);
if (JVM.is15()) {
  mapper = buildMapperDynamically(
    "com.thoughtworks.xstream.mapper.EnumMapper", new Class[]{Mapper.class},
    new Object[]{mapper});
mapper = new ImmutableTypesMapper(mapper);
if (JVM.is15()) {
  mapper = buildMapperDynamically(
    ANNOTATION_MAPPER_TYPE,
    new Class[]{Mapper.class, ConverterRegistry.class, ClassLoader.class, ReflectionProvider.class, JVM.class},

代码示例来源:origin: x-stream/xstream

mapper = new ImmutableTypesMapper(mapper);
if (JVM.isVersion(8)) {
  mapper = buildMapperDynamically("com.thoughtworks.xstream.mapper.LambdaMapper", new Class[]{Mapper.class},
    new Object[]{mapper});

相关文章