org.jboss.jpa.resolvers.strategy
Interface SearchStrategy
- All Known Implementing Classes:
- BaseSearchStrategy, JBossSearchStrategy, SpecCompliantSearchStrategy
public interface SearchStrategy
Allow for different methods to find persistence units.
- Version:
- $Revision: $
- Author:
- Carlo de Wolf
findPersistenceUnitSupplier
String findPersistenceUnitSupplier(PersistenceUnitDependencyResolver resolver,
org.jboss.deployers.structure.spi.DeploymentUnit deploymentUnit,
String persistenceUnitName)
- Find the persistence unit supplier bean given a persistence unit name.
- Parameters:
resolver
- the resolver which we're working on behalf ofdeploymentUnit
- the deployment unit that has a persistence unit referencepersistenceUnitName
- the (relative) name of a persistence unit or null for the default persistence unit
- Returns:
- the bean name of the persistence unit or null if not found
Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.