javax.persistence.spi
Interface PersistenceProviderResolver

All Known Implementing Classes:
PersistenceProviderActivator

public interface PersistenceProviderResolver

Determine the 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:
JPA 2.0 version.
Author:
Florent Benoit
See Also:
JPA 2.0 specification

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

Method Detail

getPersistenceProviders

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

Returns:
list of the persistence providers available in the environment

clearCachedProviders

void clearCachedProviders()
Clear cache of providers.



Copyright © 2007-2012 OW2 Consortium. All Rights Reserved.