Module org.eclipse.persistence.jpa
Class MetadataFactory
java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataFactory
- Direct Known Subclasses:
MetadataAsmFactory
INTERNAL:
A metadata factory is used to extract class information. It is used when
processing the metadata model. By default, metadata processing uses an
ASM factory, however tools that require a different form of processing,
like the APT processor which uses mirrors, can build their own factory
by sub-classing this one and supply it at processing time.
- Since:
- EclipseLink 1.2
-
Field Summary
Modifier and TypeFieldDescriptionstatic boolean
Backdoor to allow mapping of JDK classes.protected ClassLoader
protected MetadataLogger
protected Map
<String, MetadataClass> Stores all metadata for classes. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMetadataClass
(String name, MetadataClass metadataClass) INTERNAL:void
addMetadataClass
(MetadataClass metadataClass) INTERNAL:INTERNAL:INTERNAL:abstract MetadataClass
getMetadataClass
(String className) Return the class metadata for the class name.abstract MetadataClass
getMetadataClass
(String className, boolean isLazy) Return the class metadata for the class name.protected Map
<String, MetadataClass> INTERNAL:protected boolean
metadataClassExists
(String className) INTERNAL:abstract void
resolveGenericTypes
(MetadataClass child, List<String> genericTypes, MetadataClass parent, MetadataDescriptor descriptor) INTERNAL: This method resolves generic types based on the ASM class metadata.void
setLoader
(ClassLoader loader) INTERNAL:void
setLogger
(MetadataLogger logger) INTERNAL:
-
Field Details
-
ALLOW_JDK
public static boolean ALLOW_JDKBackdoor to allow mapping of JDK classes. -
m_metadataClasses
Stores all metadata for classes. -
m_logger
-
m_loader
-
-
Constructor Details
-
MetadataFactory
INTERNAL:
-
-
Method Details
-
addMetadataClass
INTERNAL: -
addMetadataClass
INTERNAL: -
getLoader
INTERNAL: -
getLogger
INTERNAL: -
getMetadataClasses
INTERNAL: -
metadataClassExists
INTERNAL: -
getMetadataClass
Return the class metadata for the class name. -
getMetadataClass
Return the class metadata for the class name. -
setLoader
INTERNAL: -
setLogger
INTERNAL: -
resolveGenericTypes
public abstract 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.
-