javax.persistence.spi
Interface PersistenceProviderResolver


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.


Method Summary
 List<PersistenceProvider> getPersistenceProviders()
          Returns a list of PersistenceProvider implementations available in the runtime environment.
 

Method Detail

getPersistenceProviders

List<PersistenceProvider> getPersistenceProviders()
Returns a list of PersistenceProvider implementations available in the runtime environment.

Returns:
list of persistence providers available in the environment


Copyright © 2007-2009 Hibernate.org. All Rights Reserved.