/** * {@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 undeploy(final DeploymentUnit deploymentUnit) { PersistenceProviderHandler.undeploy(deploymentUnit); }
private void processClass(final DeploymentUnit deploymentUnit, final AnnotationInstance annotation, final EEModuleClassDescription eeModuleClassDescription) throws DeploymentUnitProcessingException { bindClassSources(deploymentUnit, annotation, eeModuleClassDescription); }
public static void deploy(DeploymentPhaseContext phaseContext, boolean startEarly, Platform platform) throws DeploymentUnitProcessingException { handleWarDeployment(phaseContext, startEarly, platform); handleEarDeployment(phaseContext, startEarly, platform); handleJarDeployment(phaseContext, startEarly, platform); if( startEarly) { nextPhaseDependsOnPersistenceUnit(phaseContext, 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 { handleWarDeployment(phaseContext); handleEarDeployment(phaseContext); handleJarDeployment(phaseContext); phaseContext.addDeploymentDependency(TransactionManagerService.SERVICE_NAME, JpaAttachments.TRANSACTION_MANAGER); phaseContext.addDeploymentDependency(TransactionSynchronizationRegistryService.SERVICE_NAME, JpaAttachments.TRANSACTION_SYNCHRONIZATION_REGISTRY); }
@Override public void undeploy(DeploymentUnit context) { PersistenceUnitServiceHandler.undeploy(context); // always uninstall persistent unit services from here }
@Override public void start(StartContext startContext) throws StartException { cacheDeploymentHelper.register(); }
/** * Add dependencies for modules required for JPA deployments */ public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); setClassLoaderTransformer(deploymentUnit); }
@Override public void stop(StopContext stopContext) { cacheDeploymentHelper.unregister(); synchronized (existingResourceDescriptionResolver) { existingResourceDescriptionResolver.clear(); } }
public static void undeploy(final DeploymentUnit deploymentUnit) { Set<ClassLoader> deploymentClassLoaders = allDeploymentModuleClassLoaders(deploymentUnit); PersistenceProviderResolverImpl.getInstance().clearCachedDeploymentSpecificProviders(deploymentClassLoaders); }
public static void deploy(DeploymentPhaseContext phaseContext, boolean startEarly, Platform platform) throws DeploymentUnitProcessingException { handleWarDeployment(phaseContext, startEarly, platform); handleEarDeployment(phaseContext, startEarly, platform); handleJarDeployment(phaseContext, startEarly, platform); if( startEarly) { nextPhaseDependsOnPersistenceUnit(phaseContext, 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); }
/** * {@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 undeploy(final DeploymentUnit deploymentUnit) { PersistenceProviderHandler.undeploy(deploymentUnit); }
private void processClass(final DeploymentUnit deploymentUnit, final AnnotationInstance annotation, final EEModuleClassDescription eeModuleClassDescription) throws DeploymentUnitProcessingException { bindClassSources(deploymentUnit, annotation, eeModuleClassDescription); }
@Override public void undeploy(DeploymentUnit context) { PersistenceUnitServiceHandler.undeploy(context); // always uninstall persistent unit services from here }
@Override public void start(StartContext startContext) throws StartException { cacheDeploymentHelper.register(); }
/** * Add dependencies for modules required for JPA deployments */ public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); setClassLoaderTransformer(deploymentUnit); }
@Override public void stop(StopContext stopContext) { cacheDeploymentHelper.unregister(); synchronized (existingResourceDescriptionResolver) { existingResourceDescriptionResolver.clear(); } }