Class DynamicClassWriter

  • All Implemented Interfaces:
    EclipseLinkClassWriter

    public class DynamicClassWriter
    extends Object
    implements EclipseLinkClassWriter
    Write the byte codes of a dynamic entity class. The class writer will create the byte codes for a dynamic class that subclasses any provided class replicating its constructors and writeReplace method (if one exists).

    The intent is to provide a common writer for dynamic JPA entities but also allow for subclasses of this to be used in more complex writing situations such as SDO and DBWS.

    Instances of this class and any subclasses are maintained within the DynamicClassLoader.getClassWriters() and DynamicClassLoader.defaultWriter for the life of the class loader so it is important that no unnecessary state be maintained that may effect memory usage.

    Since:
    EclipseLink 1.2
    Author:
    dclarke, mnorman