Skip Headers

# Typesafe Enumeration Converter Amendment Method DescriptorAfterLoads Class

Previous

Next

The TopLink JAXB compiler will generate a single class called `DescriptorAfterLoads` if any implementation class contains a mapping to a type safe enumeration (see "Mappings and JAXB Typesafe Enumerations").

The TopLink JAXB compiler will update this `DescriptorAfterLoads` class with a descriptor amendment method called `amend<``ImplementationClassName``>` for each implementation class that contains a mapping to a typesafe enumeration. The amendment method sets an instance of `JAXBTypesafeEnumConverter` on each mapping that maps to a typesafe enumeration in that implementation class.

The TopLink Workbench project that the TopLink JAXB compiler creates (see "TopLink Workbench Project") configures the implementation class descriptor with this amendment method. You can open the generated TopLink Workbench project and regenerate deployment XML without losing support for this feature.