@Override public Class defaultImplementationOf(final Class type) { if (!locked) { processAnnotations(type); } final Class defaultImplementation = super.defaultImplementationOf(type); if (!locked) { processAnnotations(defaultImplementation); } return defaultImplementation; }
@Override public Converter getLocalConverter(final Class definedIn, final String fieldName) { if (!locked) { processAnnotations(definedIn); } return super.getLocalConverter(definedIn, fieldName); }
@Override public String serializedClass(final Class type) { if (!locked) { processAnnotations(type); } return super.serializedClass(type); }
@Override public String realMember(final Class type, final String serialized) { if (!locked) { processAnnotations(type); } return super.realMember(type, serialized); }
@Override public Class defaultImplementationOf(final Class type) { if (!locked) { processAnnotations(type); } final Class defaultImplementation = super.defaultImplementationOf(type); if (!locked) { processAnnotations(defaultImplementation); } return defaultImplementation; }
@Override public Class defaultImplementationOf(final Class type) { if (!locked) { processAnnotations(type); } final Class defaultImplementation = super.defaultImplementationOf(type); if (!locked) { processAnnotations(defaultImplementation); } return defaultImplementation; }
@Override public Class defaultImplementationOf(final Class type) { if (!locked) { processAnnotations(type); } final Class defaultImplementation = super.defaultImplementationOf(type); if (!locked) { processAnnotations(defaultImplementation); } return defaultImplementation; }
@Override public Class defaultImplementationOf(final Class type) { if (!locked) { processAnnotations(type); } final Class defaultImplementation = super.defaultImplementationOf(type); if (!locked) { processAnnotations(defaultImplementation); } return defaultImplementation; }
@Override public Converter getLocalConverter(final Class definedIn, final String fieldName) { if (!locked) { processAnnotations(definedIn); } return super.getLocalConverter(definedIn, fieldName); }
@Override public String realMember(final Class type, final String serialized) { if (!locked) { processAnnotations(type); } return super.realMember(type, serialized); }
@Override public String serializedClass(final Class type) { if (!locked) { processAnnotations(type); } return super.serializedClass(type); }
@Override public Converter getLocalConverter(final Class definedIn, final String fieldName) { if (!locked) { processAnnotations(definedIn); } return super.getLocalConverter(definedIn, fieldName); }
/** * Process the annotations of the given types and configure the XStream. * * @param types the types with XStream annotations * @since 1.3 */ public void processAnnotations(final Class<?>... types) { if (annotationMapper == null) { throw new InitializationException("No " + AnnotationMapper.class.getName() + " available"); } annotationMapper.processAnnotations(types); }
@Override public String realMember(final Class type, final String serialized) { if (!locked) { processAnnotations(type); } return super.realMember(type, serialized); }
@Override public String serializedClass(final Class type) { if (!locked) { processAnnotations(type); } String name = serializedClass.get(type); if (name!=null) return name; return super.serializedClass(type); }
@Override public String realMember(final Class type, final String serialized) { if (!locked) { processAnnotations(type); } return super.realMember(type, serialized); }
@Override public String serializedClass(final Class type) { if (!locked) { processAnnotations(type); } return super.serializedClass(type); }
@Override public String realMember(final Class type, final String serialized) { if (!locked) { processAnnotations(type); } return super.realMember(type, serialized); }
@Override public void processAnnotations(final Class[] initialTypes) { super.processAnnotations(initialTypes); if (typeWhitelist != null) { typeWhitelist.allowType(initialTypes); } } };
@Override public String serializedClass(final Class type) { if (!locked) { processAnnotations(type); } return super.serializedClass(type); }