You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

What is the connection between static XSDHelper calls when definition and load could be using different XSDHelpers for the same instance in the same VM. For example:

XSDHelper.INSTANCE.define(is, null);

and then in another static method xml is loaded

XMLDocument xmlDoc = XMLHelper.INSTANCE.load(is);

Answer: The methods you point out are not static methods, but are executed in the context of the singleton helpers, and the
metadata generated by the XSDHelper.INSTANCE singleton is stored in the TypeHelper.INSTANCE and accessed from there by the
XMLHelper.INSTANCEsingleton. Together these singletons form a default set of helpers centred
around a default scope for types. The recently introduced HelperContext SDO 2.1 API allows you to create new collections of helpers that together define alternative scopes.

  • No labels