Class MetadataDynamicClassWriter

  • All Implemented Interfaces:
    org.eclipse.persistence.dynamic.EclipseLinkClassWriter

    public class MetadataDynamicClassWriter
    extends org.eclipse.persistence.dynamic.DynamicClassWriter
    Custom DynamicClassWriter adding getter methods for virtual attributes so that 3rd party frameworks such as javax.validation can access the attribute values.
    Since:
    EclipseLink 2.4.1
    Author:
    dclarke
    • Field Summary

      • Fields inherited from class org.eclipse.persistence.dynamic.DynamicClassWriter

        CLINIT, DYNAMIC_PROPERTIES_MANAGER_CLASSNAME_SLASHES, ICONST, INIT, parentClass, parentClassName
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addMethods​(org.eclipse.persistence.internal.libraries.asm.ClassWriter cw, java.lang.String parentClassType)
      Add get methods for all virtual attributes
      MetadataDescriptor getDescriptor()  
      • Methods inherited from class org.eclipse.persistence.dynamic.DynamicClassWriter

        addFields, createCopy, createEnum, getInterfaces, getParentClass, getParentClassName, isCompatible, toString, verify, writeClass
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MetadataDynamicClassWriter

        public MetadataDynamicClassWriter​(MetadataDescriptor descriptor)
    • Method Detail

      • addMethods

        protected void addMethods​(org.eclipse.persistence.internal.libraries.asm.ClassWriter cw,
                                  java.lang.String parentClassType)
        Add get methods for all virtual attributes
        Overrides:
        addMethods in class org.eclipse.persistence.dynamic.DynamicClassWriter