javax.persistence.spi
Interface PersistenceProviderResolver
- All Known Implementing Classes:
- Activator, PersistenceProviderResolverHolder.DefaultPersistenceProviderResolver
public interface PersistenceProviderResolver
Determine the list of persistence providers available in the runtime
environment
Persistence providers are identified by the presence of
META-INF/services/javax.persistence.spi.PersistenceProvider files following
the Service Provider pattern.
Each META-INF/services/javax.persistence.spi.PersistenceProvider file
contains the name of the provider implementation class of the
javax.persistence.spi.PersistenceProvider interface.
Implementations must be thread-safe.
getPersistenceProviders
java.util.List<PersistenceProvider> getPersistenceProviders()
- Returns a list of PersistenceProvider implementations available in the
runtime environment.
- Returns:
- list of persistence providers available in the environment