Package persist.lint.legacy
Class LegacyNamedObjectParserFactory
java.lang.Object
persist.lint.legacy.LegacyPersistenceLinterFactory
persist.lint.legacy.LegacyNamedObjectParserFactory
- All Implemented Interfaces:
PersistenceServiceProvider,NamedObjectParserFactory,PersistenceLinterFactory
public class LegacyNamedObjectParserFactory
extends LegacyPersistenceLinterFactory
implements NamedObjectParserFactory
NamedObjectParserFactory implementation for the legacy
javax.persistence namespace ("javax").
This factory is registered as a ServiceLoader
provider and creates LegacyNamedObjectParser instances backed by
Hibernate 5.
- Since:
- 2.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newLegacyNamedObjectParserFactory. -
Method Summary
Modifier and TypeMethodDescriptionnewNamedObjectParser(List<String> discoveredClassNames) Creates a newNamedObjectParserconfigured with the given entity class names.Methods inherited from class persist.lint.legacy.LegacyPersistenceLinterFactory
getSupportedNamespaceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface persist.lint.api.spi.PersistenceLinterFactory
getSupportedNamespace
-
Constructor Details
-
LegacyNamedObjectParserFactory
public LegacyNamedObjectParserFactory()Creates a newLegacyNamedObjectParserFactory.
-
-
Method Details
-
newNamedObjectParser
Creates a newNamedObjectParserconfigured with the given entity class names.- Specified by:
newNamedObjectParserin interfaceNamedObjectParserFactory- Parameters:
discoveredClassNames- fully qualified class names of the JPA entities to register in the metamodel- Returns:
- a ready-to-use named object parser; the caller is responsible for closing it (preferably via try-with-resources)
-