Package jakarta.persistence.spi
Interface PersistenceProviderResolver
public interface PersistenceProviderResolver
Provides a list of persistence
providers available in the runtime environment.
Implementations must be thread-safe.
Note that the getPersistenceProviders()
method can
potentially be called many times: it is recommended that the
implementation of this method make use of caching.
- Since:
- 2.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Clear cache of providers.Returns a list of the persistence provider implementations available in the runtime environment.
-
Method Details
-
getPersistenceProviders
List<PersistenceProvider> getPersistenceProviders()Returns a list of the persistence provider implementations available in the runtime environment.- Returns:
- list of the persistence providers available in the environment
-
clearCachedProviders
void clearCachedProviders()Clear cache of providers.
-