/** * {@inheritDoc} */ public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { // deploy any persistence providers found in deployment PersistenceProviderHandler.deploy(phaseContext, platform); // start each PU service (except the PUs with property Configuration.JPA_CONTAINER_CLASS_TRANSFORMER = false) PersistenceUnitServiceHandler.deploy(phaseContext, true, platform); }
/** * {@inheritDoc} */ public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { // deploy any persistence providers found in deployment PersistenceProviderHandler.deploy(phaseContext, platform); // start each PU service (except the PUs with property Configuration.JPA_CONTAINER_CLASS_TRANSFORMER = false) PersistenceUnitServiceHandler.deploy(phaseContext, true, platform); }
@Override public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { if (deploymentHasPersistenceProvider(phaseContext.getDeploymentUnit())) { // finish registration of persistence provider PersistenceProviderHandler.finishDeploy(phaseContext); } // only install PUs with property Configuration.JPA_CONTAINER_CLASS_TRANSFORMER = false (since they weren't started before) // this allows @DataSourceDefinition to work (which don't start until the Install phase) PersistenceUnitServiceHandler.deploy(phaseContext, false, platform); }
@Override public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { if (deploymentHasPersistenceProvider(phaseContext.getDeploymentUnit())) { // finish registration of persistence provider PersistenceProviderHandler.finishDeploy(phaseContext); } // only install PUs with property Configuration.JPA_CONTAINER_CLASS_TRANSFORMER = false (since they weren't started before) // this allows @DataSourceDefinition to work (which don't start until the Install phase) PersistenceUnitServiceHandler.deploy(phaseContext, false, platform); }