|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.jpa.resolvers.BasePersistenceUnitDependencyResolver
public abstract class BasePersistenceUnitDependencyResolver
A configurable PersistenceUnitDependencyResolver.
Constructor Summary | |
---|---|
protected |
BasePersistenceUnitDependencyResolver()
Make sure to set the strategy before using! |
protected |
BasePersistenceUnitDependencyResolver(SearchStrategy strategy)
|
Method Summary | |
---|---|
String |
createBeanName(org.jboss.deployers.structure.spi.DeploymentUnit deploymentUnit,
String persistenceUnitName)
Create a bean name for a persistence unit (deployment). |
protected static org.jboss.deployers.structure.spi.DeploymentUnit |
getDeploymentUnit(org.jboss.deployers.structure.spi.DeploymentUnit current,
String path)
|
String |
resolvePersistenceUnitSupplier(org.jboss.deployers.structure.spi.DeploymentUnit deploymentUnit,
String persistenceUnitName)
Get the name of the bean that supplies the specified persistence unit. |
void |
setJavaEEModuleInformer(JavaEEModuleInformer informer)
|
protected void |
setSearchStrategy(SearchStrategy strategy)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected BasePersistenceUnitDependencyResolver()
protected BasePersistenceUnitDependencyResolver(SearchStrategy strategy)
Method Detail |
---|
public String createBeanName(org.jboss.deployers.structure.spi.DeploymentUnit deploymentUnit, String persistenceUnitName)
PersistenceUnitDependencyResolver
createBeanName
in interface PersistenceUnitDependencyResolver
deploymentUnit
- the deployment unit in which the persistence unit is definedpersistenceUnitName
- the name of the persistence unit
protected static org.jboss.deployers.structure.spi.DeploymentUnit getDeploymentUnit(org.jboss.deployers.structure.spi.DeploymentUnit current, String path)
public String resolvePersistenceUnitSupplier(org.jboss.deployers.structure.spi.DeploymentUnit deploymentUnit, String persistenceUnitName)
PersistenceUnitDependencyResolver
resolvePersistenceUnitSupplier
in interface PersistenceUnitDependencyResolver
deploymentUnit
- the deployment unit that has a persistence unit referencepersistenceUnitName
- the (relative) name of a persistence unit or null for the default persistence unit
public void setJavaEEModuleInformer(JavaEEModuleInformer informer)
protected void setSearchStrategy(SearchStrategy strategy)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |