private void addApplicationDependenciesOnProvider(DeploymentUnit topDeploymentUnit, PersistenceUnitMetadataHolder holder) { topDeploymentUnit = DeploymentUtils.getTopDeploymentUnit(topDeploymentUnit); synchronized (topDeploymentUnit) { // ensure that only one deployment thread sets this at a time PersistenceUnitsInApplication persistenceUnitsInApplication = getPersistenceUnitsInApplication(topDeploymentUnit); persistenceUnitsInApplication.addPersistenceUnitHolder(holder); } }
private void addApplicationDependenciesOnProvider(DeploymentUnit topDeploymentUnit, PersistenceUnitMetadataHolder holder) { topDeploymentUnit = DeploymentUtils.getTopDeploymentUnit(topDeploymentUnit); synchronized (topDeploymentUnit) { // ensure that only one deployment thread sets this at a time PersistenceUnitsInApplication persistenceUnitsInApplication = getPersistenceUnitsInApplication(topDeploymentUnit); persistenceUnitsInApplication.addPersistenceUnitHolder(holder); } }
private void incrementPersistenceUnitCount(DeploymentUnit topDeploymentUnit, int persistenceUnitCount) { topDeploymentUnit = DeploymentUtils.getTopDeploymentUnit(topDeploymentUnit); // create persistence unit counter if not done already synchronized (topDeploymentUnit) { // ensure that only one deployment thread sets this at a time PersistenceUnitsInApplication persistenceUnitsInApplication = getPersistenceUnitsInApplication(topDeploymentUnit); persistenceUnitsInApplication.increment(persistenceUnitCount); } ROOT_LOGGER.tracef("incrementing PU count for %s by %d", topDeploymentUnit.getName(), persistenceUnitCount); }
private void incrementPersistenceUnitCount(DeploymentUnit topDeploymentUnit, int persistenceUnitCount) { topDeploymentUnit = DeploymentUtils.getTopDeploymentUnit(topDeploymentUnit); // create persistence unit counter if not done already synchronized (topDeploymentUnit) { // ensure that only one deployment thread sets this at a time PersistenceUnitsInApplication persistenceUnitsInApplication = getPersistenceUnitsInApplication(topDeploymentUnit); persistenceUnitsInApplication.increment(persistenceUnitCount); } ROOT_LOGGER.tracef("incrementing PU count for %s by %d", topDeploymentUnit.getName(), persistenceUnitCount); }