Steven Wang
The Externalizer controls how to streamlize an object and get it back. You
can define your own Externalizer by implement this interface, and register as
default externalizer (an entry in defaultExternalizer.xml) or, you can make
your externalizer specific to a perticular DMTSchama.
- If you make your externalizer as default (an entry in
defaultExternalizer.xml), it will be available to all DMTSchema
- If you make your externalizer as DMTSchema specific, it will only be
available in that schema.
- If you have regiestered an externalizer for class A as default, and also
have defined an externalizer for class A in a schema, the one defined in
schema will be used. The search sequence always from schema specific to
default
If your externalizer is try to handle an object, you should extend
ObjectExternalizer
, it handles the
situation when object is null very efficiently.