Package jakarta.persistence.spi
Class PersistenceProviderResolverHolder
java.lang.Object
jakarta.persistence.spi.PersistenceProviderResolverHolder
Holds the global
PersistenceProviderResolver
instance.
If no PersistenceProviderResolver
is set by the environment,
the default PersistenceProviderResolver
is used.
Enable "jakarta.persistence.spi"
logger to show diagnostic
information.
Implementations must be thread-safe.
- Since:
- 2.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PersistenceProviderResolver
Returns the current persistence provider resolver.static void
Defines the persistence provider resolver used.
-
Constructor Details
-
PersistenceProviderResolverHolder
public PersistenceProviderResolverHolder()
-
-
Method Details
-
getPersistenceProviderResolver
Returns the current persistence provider resolver.- Returns:
- the current persistence provider resolver
-
setPersistenceProviderResolver
Defines the persistence provider resolver used.- Parameters:
resolver
- persistence provider resolver to be used.
-