public interface ProviderContainerContractInfo
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_DS_NAME |
Modifier and Type | Method and Description |
---|---|
void |
addTransformer(javax.persistence.spi.ClassTransformer transformer)
Adds ClassTransformer to underlying Application's classloader
|
String |
getApplicationLocation() |
ClassLoader |
getClassLoader() |
String |
getDefaultDataSourceName() |
DeploymentContext |
getDeploymentContext() |
String |
getJTADataSourceOverride() |
ClassLoader |
getTempClassloader() |
javax.validation.ValidatorFactory |
getValidatorFactory()
get instance of ValidatorFactory for this environment
|
boolean |
isJava2DBRequired()
Will be called while loading an application.
|
boolean |
isWeavingEnabled() |
DataSource |
lookupDataSource(String dataSourceName)
Looks up DataSource with JNDI name given by
dataSourceName |
DataSource |
lookupNonTxDataSource(String dataSourceName)
Looks up Non transactional DataSource with JNDI name given by
dataSourceName |
void |
registerEMF(String unitName,
String persistenceRootUri,
RootDeploymentDescriptor containingBundle,
javax.persistence.EntityManagerFactory emf)
Register the give emf with underlying container
|
static final String DEFAULT_DS_NAME
ClassLoader getClassLoader()
ClassLoader getTempClassloader()
void addTransformer(javax.persistence.spi.ClassTransformer transformer)
String getApplicationLocation()
DataSource lookupDataSource(String dataSourceName) throws NamingException
dataSourceName
dataSourceName
- dataSourceName
NamingException
DataSource lookupNonTxDataSource(String dataSourceName) throws NamingException
dataSourceName
dataSourceName
- dataSourceName
NamingException
javax.validation.ValidatorFactory getValidatorFactory()
boolean isJava2DBRequired()
DeploymentContext getDeploymentContext()
void registerEMF(String unitName, String persistenceRootUri, RootDeploymentDescriptor containingBundle, javax.persistence.EntityManagerFactory emf)
unitName
- Name of correspoding PersistenceUnitpersistenceRootUri
- URI within application (excluding META-INF) for root of corresponding PersistenceUnitcontainingBundle
- The bundle that contains PU for the given EMFemf
- The emf that needs to be registeredString getJTADataSourceOverride()
String getDefaultDataSourceName()
boolean isWeavingEnabled()
Copyright © 2021. All rights reserved.