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

Method Summary
 String findPersistenceUnitSupplier(PersistenceUnitDependencyResolver resolver, org.jboss.deployers.structure.spi.DeploymentUnit deploymentUnit, String persistenceUnitName)
          Find the persistence unit supplier bean given a persistence unit name.
 

Method Detail

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 of
deploymentUnit - the deployment unit that has a persistence unit reference
persistenceUnitName - 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 © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.