org.jenkinsci.jruby
Class JRubyMapper

java.lang.Object
  extended by com.thoughtworks.xstream.mapper.MapperWrapper
      extended by org.jenkinsci.jruby.JRubyMapper
All Implemented Interfaces:
com.thoughtworks.xstream.mapper.Mapper

public class JRubyMapper
extends com.thoughtworks.xstream.mapper.MapperWrapper

Set the proper alias for JRuby objects and proxy objects, so that implementation detail class names won't leak out to the persisted form.

Author:
Kohsuke Kawaguchi

Nested Class Summary
static class JRubyMapper.DynamicProxy
          Place holder type used for dynamic proxies.
 
Nested classes/interfaces inherited from interface com.thoughtworks.xstream.mapper.Mapper
com.thoughtworks.xstream.mapper.Mapper.ImplicitCollectionMapping, com.thoughtworks.xstream.mapper.Mapper.Null
 
Constructor Summary
JRubyMapper(com.thoughtworks.xstream.mapper.Mapper wrapped)
           
 
Method Summary
 Class realClass(String elementName)
           
 String serializedClass(Class type)
           
 boolean shouldSerializeMember(Class definedIn, String fieldName)
           
 
Methods inherited from class com.thoughtworks.xstream.mapper.MapperWrapper
aliasForAttribute, aliasForAttribute, aliasForSystemAttribute, attributeForAlias, attributeForAlias, attributeForClassDefiningField, attributeForEnumType, attributeForImplementationClass, attributeForReadResolveField, defaultImplementationOf, getConverterFromAttribute, getConverterFromAttribute, getConverterFromAttribute, getConverterFromItemType, getConverterFromItemType, getConverterFromItemType, getFieldNameForItemTypeAndName, getImplicitCollectionDefForFieldName, getItemTypeForItemFieldName, getLocalConverter, isImmutableValueType, lookupMapperOfType, realMember, serializedMember
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JRubyMapper

public JRubyMapper(com.thoughtworks.xstream.mapper.Mapper wrapped)
Method Detail

serializedClass

public String serializedClass(Class type)
Specified by:
serializedClass in interface com.thoughtworks.xstream.mapper.Mapper
Overrides:
serializedClass in class com.thoughtworks.xstream.mapper.MapperWrapper

realClass

public Class realClass(String elementName)
Specified by:
realClass in interface com.thoughtworks.xstream.mapper.Mapper
Overrides:
realClass in class com.thoughtworks.xstream.mapper.MapperWrapper

shouldSerializeMember

public boolean shouldSerializeMember(Class definedIn,
                                     String fieldName)
Specified by:
shouldSerializeMember in interface com.thoughtworks.xstream.mapper.Mapper
Overrides:
shouldSerializeMember in class com.thoughtworks.xstream.mapper.MapperWrapper


Copyright © 2004-2011. All Rights Reserved.