[Practicalxml-commits] SF.net SVN: practicalxml:[165] branches/dev-1.1/src/main/java/net/sf/ practi
Brought to you by:
kdgregory
From: Auto-Generated S. C. M. <pra...@li...> - 2009-10-13 22:15:55
|
Revision: 165 http://practicalxml.svn.sourceforge.net/practicalxml/?rev=165&view=rev Author: kdgregory Date: 2009-10-13 22:15:48 +0000 (Tue, 13 Oct 2009) Log Message: ----------- rename option: CACHE_INTROSPECTIONS is active voice, INTROSPECTION_CACHE isn't Modified Paths: -------------- branches/dev-1.1/src/main/java/net/sf/practicalxml/converter/bean/Bean2XmlConverter.java branches/dev-1.1/src/main/java/net/sf/practicalxml/converter/bean/Bean2XmlOptions.java branches/dev-1.1/src/main/java/net/sf/practicalxml/converter/bean/Xml2BeanConverter.java branches/dev-1.1/src/main/java/net/sf/practicalxml/converter/bean/Xml2BeanOptions.java Modified: branches/dev-1.1/src/main/java/net/sf/practicalxml/converter/bean/Bean2XmlConverter.java =================================================================== --- branches/dev-1.1/src/main/java/net/sf/practicalxml/converter/bean/Bean2XmlConverter.java 2009-10-13 18:35:12 UTC (rev 164) +++ branches/dev-1.1/src/main/java/net/sf/practicalxml/converter/bean/Bean2XmlConverter.java 2009-10-13 22:15:48 UTC (rev 165) @@ -47,7 +47,7 @@ for (Bean2XmlOptions option : options) _options.add(option); _helper = new PrimitiveConversionHelper(shouldUseXsdFormatting()); - _introspections = new IntrospectionCache(_options.contains(Bean2XmlOptions.INTROSPECTION_CACHE)); + _introspections = new IntrospectionCache(_options.contains(Bean2XmlOptions.CACHE_INTROSPECTIONS)); } Modified: branches/dev-1.1/src/main/java/net/sf/practicalxml/converter/bean/Bean2XmlOptions.java =================================================================== --- branches/dev-1.1/src/main/java/net/sf/practicalxml/converter/bean/Bean2XmlOptions.java 2009-10-13 18:35:12 UTC (rev 164) +++ branches/dev-1.1/src/main/java/net/sf/practicalxml/converter/bean/Bean2XmlOptions.java 2009-10-13 22:15:48 UTC (rev 165) @@ -22,6 +22,15 @@ public enum Bean2XmlOptions { /** + * Will use a shared static introspection cache for all conversions. + * <p> + * <strong>Warning</strong>: if you use this option, do not store this + * library in a shared app-server classpath. If you do, the cache will + * prevent class unloading, and you will run out of permgen space. + */ + CACHE_INTROSPECTIONS, + + /** * Output maps in an "introspected" format, where the name of each item * is the map key (rather than "data"), and the "key" attribute is omitted. * If any key is not a valid XML identifier, the converter will throw. @@ -88,14 +97,5 @@ * <p> * <em>This option implies {@link #XSD_FORMAT} for simple types</em>. */ - XSI_TYPE, - - /** - * Will use a shared static introspection cache for all conversions. - * <p> - * <strong>Warning</strong>: if you use this option, do not store this - * library in a shared app-server classpath. If you do, the cache will - * prevent class unloading, and you will run out of permgen space. - */ - INTROSPECTION_CACHE + XSI_TYPE } Modified: branches/dev-1.1/src/main/java/net/sf/practicalxml/converter/bean/Xml2BeanConverter.java =================================================================== --- branches/dev-1.1/src/main/java/net/sf/practicalxml/converter/bean/Xml2BeanConverter.java 2009-10-13 18:35:12 UTC (rev 164) +++ branches/dev-1.1/src/main/java/net/sf/practicalxml/converter/bean/Xml2BeanConverter.java 2009-10-13 22:15:48 UTC (rev 165) @@ -59,7 +59,7 @@ _options.add(option); _helper = new PrimitiveConversionHelper(_options.contains(Xml2BeanOptions.EXPECT_XSD_FORMAT)); - _introspections = new IntrospectionCache(_options.contains(Xml2BeanOptions.INTROSPECTION_CACHE)); + _introspections = new IntrospectionCache(_options.contains(Xml2BeanOptions.CACHE_INTROSPECTIONS)); } Modified: branches/dev-1.1/src/main/java/net/sf/practicalxml/converter/bean/Xml2BeanOptions.java =================================================================== --- branches/dev-1.1/src/main/java/net/sf/practicalxml/converter/bean/Xml2BeanOptions.java 2009-10-13 18:35:12 UTC (rev 164) +++ branches/dev-1.1/src/main/java/net/sf/practicalxml/converter/bean/Xml2BeanOptions.java 2009-10-13 22:15:48 UTC (rev 165) @@ -23,6 +23,15 @@ public enum Xml2BeanOptions { /** + * Will use a shared static introspection cache for all conversions. + * <p> + * <strong>Warning</strong>: if you use this option, do not store this + * library in a shared app-server classpath. If you do, the cache will + * prevent class unloading, and you will run out of permgen space. + */ + CACHE_INTROSPECTIONS, + + /** * If present, the converter will treat all elements with empty text nodes * as if they were empty elements -- in other words, <code>null</code>. * Note that this flag will interact with <code>REQUIRE_XSI_NIL</code>. @@ -54,14 +63,5 @@ * uses the <code>xsi:type</code> value to choose between different setter * methods, but otherwise ignores it. */ - REQUIRE_XSI_TYPE, - - /** - * Will use a shared static introspection cache for all conversions. - * <p> - * <strong>Warning</strong>: if you use this option, do not store this - * library in a shared app-server classpath. If you do, the cache will - * prevent class unloading, and you will run out of permgen space. - */ - INTROSPECTION_CACHE + REQUIRE_XSI_TYPE } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |