Package jakarta.persistence.spi
Class PersistenceProviderResolverHolder
- java.lang.Object
-
- jakarta.persistence.spi.PersistenceProviderResolverHolder
-
public class PersistenceProviderResolverHolder extends Object
Holds the globalPersistenceProviderResolver
instance. If noPersistenceProviderResolver
is set by the environment, the defaultPersistenceProviderResolver
is used. Enable "jakarta.persistence.spi" logger to show diagnostic information. Implementations must be thread-safe.- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description PersistenceProviderResolverHolder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PersistenceProviderResolver
getPersistenceProviderResolver()
Returns the current persistence provider resolver.static void
setPersistenceProviderResolver(PersistenceProviderResolver resolver)
Defines the persistence provider resolver used.
-
-
-
Method Detail
-
getPersistenceProviderResolver
public static PersistenceProviderResolver getPersistenceProviderResolver()
Returns the current persistence provider resolver.- Returns:
- the current persistence provider resolver
-
setPersistenceProviderResolver
public static void setPersistenceProviderResolver(PersistenceProviderResolver resolver)
Defines the persistence provider resolver used.- Parameters:
resolver
- persistence provider resolver to be used.
-
-