Module org.eclipse.persistence.jpa
Class MetadataAsmFactory
java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataFactory
org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataAsmFactory
INTERNAL: A metadata factory that uses ASM technology and no reflection
whatsoever to process the metadata model.
- Since:
- EclipseLink 1.2
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassWalk the class byte codes and collect the class info. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringSet of primitive type codes.static final StringSet of desc token characters.Fields inherited from class org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataFactory
ALLOW_JDK, m_loader, m_logger, m_metadataClasses -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuildClassMetadata(MetadataClass metadataClass, String className, boolean isLazy) Build the class metadata for the class name using ASM to read the class byte codes.getMetadataClass(String className) Return the class metadata for the class name.getMetadataClass(String className, boolean isLazy) Return the class metadata for the class name.voidresolveGenericTypes(MetadataClass child, List<String> genericTypes, MetadataClass parent, MetadataDescriptor descriptor) INTERNAL: This method resolves generic types based on the ASM class metadata.Methods inherited from class org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataFactory
addMetadataClass, addMetadataClass, getLoader, getLogger, getMetadataClasses, metadataClassExists, setLoader, setLogger
-
Field Details
-
PRIMITIVES
Set of primitive type codes.- See Also:
-
TOKENS
Set of desc token characters.- See Also:
-
-
Constructor Details
-
MetadataAsmFactory
INTERNAL:
-
-
Method Details
-
buildClassMetadata
Build the class metadata for the class name using ASM to read the class byte codes. -
getMetadataClass
Return the class metadata for the class name.- Specified by:
getMetadataClassin classMetadataFactory
-
getMetadataClass
Return the class metadata for the class name.- Specified by:
getMetadataClassin classMetadataFactory
-
resolveGenericTypes
public void resolveGenericTypes(MetadataClass child, List<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:
resolveGenericTypesin classMetadataFactory
-