org.jboss.jpa.resolvers.strategy
Class BaseSearchStrategy

java.lang.Object
  extended by org.jboss.jpa.resolvers.strategy.BaseSearchStrategy
All Implemented Interfaces:
SearchStrategy
Direct Known Subclasses:
JBossSearchStrategy, SpecCompliantSearchStrategy

public abstract class BaseSearchStrategy
extends Object
implements SearchStrategy

The spec compliant persistence unit search stragegy. To allow injection by class it has a base name. See EJB 3.0 6.2.2.

Version:
$Revision: $
Author:
Carlo de Wolf

Constructor Summary
BaseSearchStrategy()
           
 
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.
protected  String findWithinApplication(PersistenceUnitDependencyResolver resolver, org.jboss.deployers.structure.spi.DeploymentUnit unit, String persistenceUnitName)
           
protected  String findWithinModule(PersistenceUnitDependencyResolver resolver, org.jboss.deployers.structure.spi.DeploymentUnit unit, String persistenceUnitName, boolean allowScoped)
           
protected static org.jboss.deployers.structure.spi.DeploymentUnit getDeploymentUnit(org.jboss.deployers.structure.spi.DeploymentUnit current, String path)
           
 void setJavaEEModuleInformer(JavaEEModuleInformer informer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseSearchStrategy

public BaseSearchStrategy()
Method Detail

findPersistenceUnitSupplier

public String findPersistenceUnitSupplier(PersistenceUnitDependencyResolver resolver,
                                          org.jboss.deployers.structure.spi.DeploymentUnit deploymentUnit,
                                          String persistenceUnitName)
Description copied from interface: SearchStrategy
Find the persistence unit supplier bean given a persistence unit name.

Specified by:
findPersistenceUnitSupplier in interface SearchStrategy
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

findWithinApplication

protected String findWithinApplication(PersistenceUnitDependencyResolver resolver,
                                       org.jboss.deployers.structure.spi.DeploymentUnit unit,
                                       String persistenceUnitName)

findWithinModule

protected String findWithinModule(PersistenceUnitDependencyResolver resolver,
                                  org.jboss.deployers.structure.spi.DeploymentUnit unit,
                                  String persistenceUnitName,
                                  boolean allowScoped)

getDeploymentUnit

protected static org.jboss.deployers.structure.spi.DeploymentUnit getDeploymentUnit(org.jboss.deployers.structure.spi.DeploymentUnit current,
                                                                                    String path)

setJavaEEModuleInformer

public void setJavaEEModuleInformer(JavaEEModuleInformer informer)


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.