Class MetadataAsmFactory


  • public class MetadataAsmFactory
    extends MetadataFactory
    INTERNAL: A metadata factory that uses ASM technology and no reflection whatsoever to process the metadata model.
    Since:
    EclipseLink 1.2
    Author:
    James Sutherland
    • Field Detail

      • PRIMITIVES

        public static final java.lang.String PRIMITIVES
        Set of primitive type codes.
        See Also:
        Constant Field Values
      • TOKENS

        public static final java.lang.String TOKENS
        Set of desc token characters.
        See Also:
        Constant Field Values
    • Constructor Detail

      • MetadataAsmFactory

        public MetadataAsmFactory​(MetadataLogger logger,
                                  java.lang.ClassLoader loader)
        INTERNAL:
    • Method Detail

      • buildClassMetadata

        protected void buildClassMetadata​(MetadataClass metadataClass,
                                          java.lang.String className,
                                          boolean isLazy)
        Build the class metadata for the class name using ASM to read the class byte codes.
      • resolveGenericTypes

        public void resolveGenericTypes​(MetadataClass child,
                                        java.util.List<java.lang.String> genericTypes,
                                        MetadataClass parent,
                                        MetadataDescriptor descriptor)
        INTERNAL: This method resolves generic types based on the ASM class metadata. Unless every other factory (e.g. APT mirror factory) respects the generic format as built from ASM this method will not work since it is very tied to it.
        Specified by:
        resolveGenericTypes in class MetadataFactory