Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: add example

...

Note that these are options to the default type creators. If you take the step of creating a customized type creator, it will be up to you to respect or ignore these options.

Here's a quick example of Java code setting these options. In Spring you would do something analogous with properties.

Code Block
java
java

TypeCreationOptions tOpts = new TypeCreationOptions();
tOpts.setDefaultMinOccurs(1);
tOpts.setDefaultNillable(false);
AegisDatabinding aDB = new AegisDatabinding();
aDB.getAegisContext().setTypeCreationOptions(tOpts);
sFactory.getServiceFactory().setDataBinding(aDB);

Detailed Control of Bean Type Mapping

...