Index: SourceFactory.java =================================================================== RCS file: /home/projects/castor/scm/castor/src/main/org/exolab/castor/builder/SourceFactory.java,v retrieving revision 1.27 diff -u -r1.27 SourceFactory.java --- SourceFactory.java 23 Feb 2006 08:37:49 -0000 1.27 +++ SourceFactory.java 28 Mar 2006 16:35:29 -0000 @@ -192,6 +192,10 @@ else this.infoFactory = infoFactory; + // blp set the config into the info factory + infoFactory.setBoundProperties(config.boundPropertiesEnabled()); + // end blp + this.memberFactory = new MemberFactory(config, infoFactory); _typeConversion = new TypeConversion(_config); } //-- SourceFactory Index: SourceGenerator.java =================================================================== RCS file: /home/projects/castor/scm/castor/src/main/org/exolab/castor/builder/SourceGenerator.java,v retrieving revision 1.23 diff -u -r1.23 SourceGenerator.java --- SourceGenerator.java 30 Jan 2006 22:47:02 -0000 1.23 +++ SourceGenerator.java 28 Mar 2006 16:38:50 -0000 @@ -302,7 +302,8 @@ load(); - _sourceFactory = new SourceFactory(this, _infoFactory); + // blp do this later + //_sourceFactory = new SourceFactory(this, _infoFactory); _descSourceFactory = new DescriptorSourceFactory(this); _mappingSourceFactory = new MappingFileSourceFactory(this); @@ -323,7 +324,14 @@ public void generateSource(Schema schema, String packageName) throws IOException { - + // blp by this time the properties have been set. + // if the sourceFactory is null then create one using this + // for configuration If this is done before reading in the configuration + // ther is a problem + if (_sourceFactory == null) + _sourceFactory = new SourceFactory(this, _infoFactory); + + if (schema == null) { String err = "The argument 'schema' must not be null."; throw new IllegalArgumentException(err);