To maximize performance in the type instantiation process, do the
following:
- When defining descriptors, provide the full name of the implementation
class in the implClass attribute. This is especially necessary
for the default descriptors because the toolkit cannot obtain the implementing
class from the referred type.
- Use the following naming convention for the descriptors tags:
- Use the xxxDescriptor tag name for the default descriptor of
the type xxx. For example, for the type with id="Money", use the MoneyDescriptor
tag name to define its default descriptor.
- Use the yyyDescriptor tag name for descriptors whose refType attribute
points to the yyy type. For example, to define a descriptor whose refType
is the Money type, use the MoneyDescriptor tag name.