@Override public void configure(DeploymentPhaseContext context, ComponentDescription description, final ComponentConfiguration configuration) throws DeploymentUnitProcessingException { final TransactionLeakContextHandleFactory transactionLeakContextHandleFactory = new TransactionLeakContextHandleFactory(); context.addDependency(TransactionManagerService.INTERNAL_SERVICE_NAME, TransactionManager.class, transactionLeakContextHandleFactory); configuration.getConcurrentContext().addFactory(transactionLeakContextHandleFactory); } };
phaseContext.addDependency(appContextServiceName, NamingStore.class, selector.getAppContextInjector()); phaseContext.addDependency(moduleContextServiceName, NamingStore.class, selector.getModuleContextInjector()); phaseContext.addDependency(moduleContextServiceName, NamingStore.class, selector.getCompContextInjector()); phaseContext.addDependency(ContextNames.JBOSS_CONTEXT_SERVICE_NAME, NamingStore.class, selector.getJbossContextInjector()); phaseContext.addDependency(ContextNames.EXPORTED_CONTEXT_SERVICE_NAME, NamingStore.class, selector.getExportedContextInjector()); phaseContext.addDependency(ContextNames.GLOBAL_CONTEXT_SERVICE_NAME, NamingStore.class, selector.getGlobalContextInjector());
@Override public void deploy(DeploymentPhaseContext context) throws DeploymentUnitProcessingException { DeploymentUnit unit = context.getDeploymentUnit(); if (unit.getParent() == null) { SingletonDeploymentConfiguration config = unit.getAttachment(CONFIGURATION_KEY); if (config != null) { CapabilityServiceSupport support = unit.getAttachment(Attachments.CAPABILITY_SERVICE_SUPPORT); context.addDependency(SingletonServiceNameFactory.SINGLETON_POLICY.getServiceName(support, config.getPolicy()), SingletonDeploymentProcessor.POLICY_KEY); } } }
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { phaseContext.addDependency(WSServices.CONFIG_SERVICE, WSAttachmentKeys.SERVER_CONFIG_KEY); }
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { phaseContext.addDependency(WSServices.CONFIG_SERVICE, WSAttachmentKeys.SERVER_CONFIG_KEY); }
@Override public void configure(DeploymentPhaseContext context, ComponentDescription description, final ComponentConfiguration configuration) throws DeploymentUnitProcessingException { final TransactionLeakContextHandleFactory transactionLeakContextHandleFactory = new TransactionLeakContextHandleFactory(); context.addDependency(TransactionManagerService.SERVICE_NAME, TransactionManager.class, transactionLeakContextHandleFactory); configuration.getConcurrentContext().addFactory(transactionLeakContextHandleFactory); } };
@Override public void deploy(DeploymentPhaseContext context) throws DeploymentUnitProcessingException { String defaultAuthenticationContext = this.defaultAuthenticationContext; if (defaultAuthenticationContext != null) { CapabilityServiceSupport capabilityServiceSupport = context.getDeploymentUnit().getAttachment(CAPABILITY_SERVICE_SUPPORT); ServiceName serviceName = capabilityServiceSupport.getCapabilityServiceName(AUTHENTICATION_CONTEXT_CAPABILITY, defaultAuthenticationContext); context.addDependency(serviceName, ElytronExtension.AUTHENTICATION_CONTEXT_KEY); } }
@Override public void configure(DeploymentPhaseContext context, ComponentDescription description, final ComponentConfiguration configuration) throws DeploymentUnitProcessingException { final TransactionLeakContextHandleFactory transactionLeakContextHandleFactory = new TransactionLeakContextHandleFactory(); context.addDependency(TransactionManagerService.INTERNAL_SERVICE_NAME, TransactionManager.class, transactionLeakContextHandleFactory); configuration.getConcurrentContext().addFactory(transactionLeakContextHandleFactory); } };
phaseContext.addDependency(appContextServiceName, NamingStore.class, selector.getAppContextInjector()); phaseContext.addDependency(moduleContextServiceName, NamingStore.class, selector.getModuleContextInjector()); phaseContext.addDependency(moduleContextServiceName, NamingStore.class, selector.getCompContextInjector()); phaseContext.addDependency(ContextNames.JBOSS_CONTEXT_SERVICE_NAME, NamingStore.class, selector.getJbossContextInjector()); phaseContext.addDependency(ContextNames.EXPORTED_CONTEXT_SERVICE_NAME, NamingStore.class, selector.getExportedContextInjector()); phaseContext.addDependency(ContextNames.GLOBAL_CONTEXT_SERVICE_NAME, NamingStore.class, selector.getGlobalContextInjector());
phaseContext.addDependency(appContextServiceName, NamingStore.class, selector.getAppContextInjector()); phaseContext.addDependency(moduleContextServiceName, NamingStore.class, selector.getModuleContextInjector()); phaseContext.addDependency(moduleContextServiceName, NamingStore.class, selector.getCompContextInjector()); phaseContext.addDependency(ContextNames.JBOSS_CONTEXT_SERVICE_NAME, NamingStore.class, selector.getJbossContextInjector()); phaseContext.addDependency(ContextNames.EXPORTED_CONTEXT_SERVICE_NAME, NamingStore.class, selector.getExportedContextInjector()); phaseContext.addDependency(ContextNames.GLOBAL_CONTEXT_SERVICE_NAME, NamingStore.class, selector.getGlobalContextInjector());
phaseContext.addDependency(appContextServiceName, NamingStore.class, selector.getAppContextInjector()); phaseContext.addDependency(moduleContextServiceName, NamingStore.class, selector.getModuleContextInjector()); phaseContext.addDependency(moduleContextServiceName, NamingStore.class, selector.getCompContextInjector()); phaseContext.addDependency(ContextNames.JBOSS_CONTEXT_SERVICE_NAME, NamingStore.class, selector.getJbossContextInjector()); phaseContext.addDependency(ContextNames.EXPORTED_CONTEXT_SERVICE_NAME, NamingStore.class, selector.getExportedContextInjector()); phaseContext.addDependency(ContextNames.GLOBAL_CONTEXT_SERVICE_NAME, NamingStore.class, selector.getGlobalContextInjector());
@Override public void deploy(DeploymentPhaseContext context) throws DeploymentUnitProcessingException { DeploymentUnit unit = context.getDeploymentUnit(); if (unit.getParent() == null) { SingletonDeploymentConfiguration config = unit.getAttachment(CONFIGURATION_KEY); if (config != null) { CapabilityServiceSupport support = unit.getAttachment(Attachments.CAPABILITY_SERVICE_SUPPORT); context.addDependency(SingletonServiceNameFactory.SINGLETON_POLICY.getServiceName(support, config.getPolicy()), SingletonDeploymentProcessor.POLICY_KEY); } } }
@Override public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { DeploymentUnit depUnit = phaseContext.getDeploymentUnit(); XBundle bundle = depUnit.getAttachment(OSGiConstants.BUNDLE_KEY); if (bundle == null || bundle.isFragment()) return; ServiceController<XBundle> controller = BundleActivateService.addService(phaseContext.getServiceTarget(), depUnit, bundle); phaseContext.addDependency(controller.getName(), AttachmentKey.create(XBundle.class)); }
@Override public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { DeploymentUnit depUnit = phaseContext.getDeploymentUnit(); XBundleRevision brev = depUnit.getAttachment(OSGiConstants.BUNDLE_REVISION_KEY); if (brev == null || brev.isFragment()) return; ServiceController<XBundle> controller = BundleActivateService.addService(phaseContext.getServiceTarget(), depUnit, brev.getBundle()); phaseContext.addDependency(controller.getName(), AttachmentKey.create(XBundle.class)); }
@Override public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { DeploymentUnit depUnit = phaseContext.getDeploymentUnit(); OSGiMetaData metadata = depUnit.getAttachment(OSGiConstants.OSGI_METADATA_KEY); // Check if we already have a bundle {@link Deployment} Deployment dep = BundleLifecycleIntegration.getDeployment(depUnit.getName()); if (metadata == null && dep != null) { metadata = dep.getAttachment(IntegrationConstants.OSGI_METADATA_KEY); } Manifest manifest = depUnit.getAttachment(Attachments.OSGI_MANIFEST); if (metadata == null && manifest != null) { metadata = OSGiMetaDataBuilder.load(manifest); } // Add a dependency on the {@link FrameworkBootstrapService} // for any deployment that has valid {@link OSGiMetaData} if (metadata != null) { depUnit.putAttachment(OSGiConstants.OSGI_METADATA_KEY, metadata); phaseContext.addDependency(FrameworkBootstrapService.SERVICE_NAME, AttachmentKey.create(Void.class)); } }