org.jboss.jpa.resolvers.strategy
Class BaseSearchStrategy
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseSearchStrategy
public BaseSearchStrategy()
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 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
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 © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.