/** {@inheritDoc} */ public synchronized void addDeployedExtension(ModuleIdentifier identifier, ExtensionInfo extensionInfo) { final ExtensionJar extensionJar = new ExtensionJar(identifier, extensionInfo); Set<ExtensionJar> jars = this.extensions.get(extensionInfo.getName()); if (jars == null) { this.extensions.put(extensionInfo.getName(), jars = new HashSet<ExtensionJar>()); } jars.add(extensionJar); }
/** {@inheritDoc} */ public synchronized void addDeployedExtension(ModuleIdentifier identifier, ExtensionInfo extensionInfo) { final ExtensionJar extensionJar = new ExtensionJar(identifier, extensionInfo); Set<ExtensionJar> jars = this.extensions.get(extensionInfo.getName()); if (jars == null) { this.extensions.put(extensionInfo.getName(), jars = new HashSet<ExtensionJar>()); } jars.add(extensionJar); }
/** {@inheritDoc} */ public synchronized void addDeployedExtension(ModuleIdentifier identifier, ExtensionInfo extensionInfo) { final ExtensionJar extensionJar = new ExtensionJar(identifier, extensionInfo); Set<ExtensionJar> jars = this.extensions.get(extensionInfo.getName()); if (jars == null) { this.extensions.put(extensionInfo.getName(), jars = new HashSet<ExtensionJar>()); } jars.add(extensionJar); }
/** {@inheritDoc} */ public synchronized void addDeployedExtension(ModuleIdentifier identifier, ExtensionInfo extensionInfo) { final ExtensionJar extensionJar = new ExtensionJar(identifier, extensionInfo); Set<ExtensionJar> jars = this.extensions.get(extensionInfo.getName()); if (jars == null) { this.extensions.put(extensionInfo.getName(), jars = new HashSet<ExtensionJar>()); } jars.add(extensionJar); }
/** {@inheritDoc} */ public void undeploy(final DeploymentUnit deploymentUnit) { final ExtensionInfo extensionInfo = deploymentUnit.getAttachment(Attachments.EXTENSION_INFORMATION); if (extensionInfo == null) { return; } // we need to remove the extension on undeploy final ServiceController<?> extensionIndexController = deploymentUnit.getServiceRegistry().getRequiredService( Services.JBOSS_DEPLOYMENT_EXTENSION_INDEX); final ExtensionIndex extensionIndexService = (ExtensionIndex) extensionIndexController.getValue(); final ModuleIdentifier moduleIdentifier = deploymentUnit.getAttachment(Attachments.MODULE_IDENTIFIER); extensionIndexService.removeDeployedExtension(extensionInfo.getName(), moduleIdentifier); } }
/** {@inheritDoc} */ public void undeploy(final DeploymentUnit deploymentUnit) { final ExtensionInfo extensionInfo = deploymentUnit.getAttachment(Attachments.EXTENSION_INFORMATION); if (extensionInfo == null) { return; } // we need to remove the extension on undeploy final ServiceController<?> extensionIndexController = deploymentUnit.getServiceRegistry().getRequiredService( Services.JBOSS_DEPLOYMENT_EXTENSION_INDEX); final ExtensionIndex extensionIndexService = (ExtensionIndex) extensionIndexController.getValue(); final ModuleIdentifier moduleIdentifier = deploymentUnit.getAttachment(Attachments.MODULE_IDENTIFIER); extensionIndexService.removeDeployedExtension(extensionInfo.getName(), moduleIdentifier); } }
/** {@inheritDoc} */ public void undeploy(final DeploymentUnit deploymentUnit) { final ExtensionInfo extensionInfo = deploymentUnit.getAttachment(Attachments.EXTENSION_INFORMATION); if (extensionInfo == null) { return; } // we need to remove the extension on undeploy final ServiceController<?> extensionIndexController = deploymentUnit.getServiceRegistry().getRequiredService( Services.JBOSS_DEPLOYMENT_EXTENSION_INDEX); final ExtensionIndex extensionIndexService = (ExtensionIndex) extensionIndexController.getValue(); final ModuleIdentifier moduleIdentifier = deploymentUnit.getAttachment(Attachments.MODULE_IDENTIFIER); extensionIndexService.removeDeployedExtension(extensionInfo.getName(), moduleIdentifier); } }
/** {@inheritDoc} */ public void undeploy(final DeploymentUnit deploymentUnit) { final ExtensionInfo extensionInfo = deploymentUnit.getAttachment(Attachments.EXTENSION_INFORMATION); if (extensionInfo == null) { return; } // we need to remove the extension on undeploy final ServiceController<?> extensionIndexController = deploymentUnit.getServiceRegistry().getRequiredService( Services.JBOSS_DEPLOYMENT_EXTENSION_INDEX); final ExtensionIndex extensionIndexService = (ExtensionIndex) extensionIndexController.getValue(); final ModuleIdentifier moduleIdentifier = deploymentUnit.getAttachment(Attachments.MODULE_IDENTIFIER); extensionIndexService.removeDeployedExtension(extensionInfo.getName(), moduleIdentifier); } }