dataSourceConfiguration.connectionPoolConfiguration(connectionPoolConfiguration); ContextNames.BindInfo bindInfo = ContextNames.bindInfoForEnvEntry(context.getApplicationName(), context.getModuleName(), context.getComponentName(), !context.isCompUsesModule(), jndiName); ServiceName dataSourceServiceName = DATASOURCE_DEFINITION_SERVICE_PREFIX.append(bindInfo.getBinderServiceName().getCanonicalName());
final InjectionSource.ResolutionContext resolutionContext = new InjectionSource.ResolutionContext( configuration.getComponentDescription().getNamingMode() == ComponentNamingMode.USE_MODULE, configuration.getComponentName(),
final InjectionSource.ResolutionContext resolutionContext = new InjectionSource.ResolutionContext( configuration.getComponentDescription().getNamingMode() == ComponentNamingMode.USE_MODULE, configuration.getComponentName(),
final InjectionSource.ResolutionContext resolutionContext = new InjectionSource.ResolutionContext( configuration.getComponentDescription().getNamingMode() == ComponentNamingMode.USE_MODULE, configuration.getComponentName(),
final InjectionSource.ResolutionContext resolutionContext = new InjectionSource.ResolutionContext( configuration.getComponentDescription().getNamingMode() == ComponentNamingMode.USE_MODULE, configuration.getComponentName(),
InjectionSource.ResolutionContext resolutionContext = new InjectionSource.ResolutionContext( true, module.getModuleName(),
InjectionSource.ResolutionContext resolutionContext = new InjectionSource.ResolutionContext( true, module.getModuleName(),
final String applicationName = resolutionContext.getApplicationName(); final String moduleName = resolutionContext.getModuleName(); final String componentName = resolutionContext.getComponentName(); final boolean compUsesModule = resolutionContext.isCompUsesModule(); final String scheme = org.jboss.as.naming.InitialContext.getURLScheme(lookupName); if (scheme == null) {
final ContextNames.BindInfo bindInfo = ContextNames.bindInfoForEnvEntry(context.getApplicationName(), context.getModuleName(), context.getComponentName(), !context.isCompUsesModule(), name); PooledConnectionFactoryService.installService(serviceTarget, pcfName, serverName, connectors, discoveryGroupName, jgroupsChannelName, adapterParams,
final ContextNames.BindInfo bindInfo = ContextNames.bindInfoForEnvEntry(context.getApplicationName(), context.getModuleName(), context.getComponentName(), !context.isCompUsesModule(), name); PooledConnectionFactoryService.installService(serviceTarget, pcfName, serverName, connectors, discoveryGroupName, jgroupsChannelName, adapterParams,
.addDependency(ConnectorServices.JDBC_DRIVER_REGISTRY_SERVICE, DriverRegistry.class, dataSourceService.getDriverRegistryInjector()).addDependency(NamingService.SERVICE_NAME); final ContextNames.BindInfo bindInfo = ContextNames.bindInfoForEnvEntry(context.getApplicationName(), context.getModuleName(), context.getComponentName(), !context.isCompUsesModule(), jndiName);
InjectionSource.ResolutionContext resolutionContext = new InjectionSource.ResolutionContext( true, module.getModuleName(),
final String applicationName = resolutionContext.getApplicationName(); final String moduleName = resolutionContext.getModuleName(); final String componentName = resolutionContext.getComponentName(); final boolean compUsesModule = resolutionContext.isCompUsesModule(); final String scheme = org.jboss.as.naming.InitialContext.getURLScheme(lookupName); if (scheme == null) {
ContextNames.BindInfo bindInfo = ContextNames.bindInfoForEnvEntry(context.getApplicationName(), context.getModuleName(), context.getComponentName(), !context.isCompUsesModule(), jndiName);
final EEModuleDescription eeModuleDescription = deploymentUnit.getAttachment(Attachments.EE_MODULE_DESCRIPTION); final String poolName = uniqueName(context, jndiName); final ContextNames.BindInfo bindInfo = ContextNames.bindInfoForEnvEntry(context.getApplicationName(), context.getModuleName(), context.getComponentName(), !context.isCompUsesModule(), jndiName); final DeploymentReflectionIndex reflectionIndex = deploymentUnit.getAttachment(org.jboss.as.server.deployment.Attachments.REFLECTION_INDEX); try {
ContextNames.BindInfo bindInfo = ContextNames.bindInfoForEnvEntry(context.getApplicationName(), context.getModuleName(), context.getComponentName(), !context.isCompUsesModule(), jndiName);
public void getResourceValue(final ResolutionContext resolutionContext, final ServiceBuilder<?> serviceBuilder, final DeploymentPhaseContext phaseContext, final Injector<ManagedReferenceFactory> injector) throws DeploymentUnitProcessingException { if (error != null) { throw new DeploymentUnitProcessingException(error); } final String applicationName = resolutionContext.getApplicationName(); final String moduleName = resolutionContext.getModuleName(); final String componentName = resolutionContext.getComponentName(); final boolean compUsesModule = resolutionContext.isCompUsesModule(); final String lookupName; if (!this.resolvedLookupName.contains(":")) { if (componentName != null && !compUsesModule) { lookupName = "java:comp/env/" + this.resolvedLookupName; } else if (compUsesModule) { lookupName = "java:module/env/" + this.resolvedLookupName; } else { lookupName = "java:jboss/env" + this.resolvedLookupName; } } else if (this.resolvedLookupName.startsWith("java:comp/") && compUsesModule) { lookupName = "java:module/" + this.resolvedLookupName.substring(10); } else { lookupName = this.resolvedLookupName; } final ContextNames.BindInfo bindInfo = ContextNames.bindInfoFor(applicationName, moduleName, componentName, lookupName); if (lookupName.startsWith("java:")) { serviceBuilder.addDependency(bindInfo.getBinderServiceName(), ManagedReferenceFactory.class, injector); } }
public void getResourceValue(final ResolutionContext resolutionContext, final ServiceBuilder<?> serviceBuilder, final DeploymentPhaseContext phaseContext, final Injector<ManagedReferenceFactory> injector) throws DeploymentUnitProcessingException { if (error != null) { throw new DeploymentUnitProcessingException(error); } final String applicationName = resolutionContext.getApplicationName(); final String moduleName = resolutionContext.getModuleName(); final String componentName = resolutionContext.getComponentName(); final boolean compUsesModule = resolutionContext.isCompUsesModule(); final String lookupName; if (!this.resolvedLookupName.contains(":")) { if (componentName != null && !compUsesModule) { lookupName = "java:comp/env/" + this.resolvedLookupName; } else if (compUsesModule) { lookupName = "java:module/env/" + this.resolvedLookupName; } else { lookupName = "java:jboss/env" + this.resolvedLookupName; } } else if (this.resolvedLookupName.startsWith("java:comp/") && compUsesModule) { lookupName = "java:module/" + this.resolvedLookupName.substring(10); } else { lookupName = this.resolvedLookupName; } final ContextNames.BindInfo bindInfo = ContextNames.bindInfoFor(applicationName, moduleName, componentName, lookupName); if (lookupName.startsWith("java:")) { serviceBuilder.addDependency(bindInfo.getBinderServiceName(), ManagedReferenceFactory.class, injector); } }
public void getResourceValue(final ResolutionContext resolutionContext, final ServiceBuilder<?> serviceBuilder, final DeploymentPhaseContext phaseContext, final Injector<ManagedReferenceFactory> injector) throws DeploymentUnitProcessingException { if (error != null) { throw new DeploymentUnitProcessingException(error); } final String applicationName = resolutionContext.getApplicationName(); final String moduleName = resolutionContext.getModuleName(); final String componentName = resolutionContext.getComponentName(); final boolean compUsesModule = resolutionContext.isCompUsesModule(); final String lookupName; if (!this.resolvedLookupName.contains(":")) { if (componentName != null && !compUsesModule) { lookupName = "java:comp/env/" + this.resolvedLookupName; } else if (compUsesModule) { lookupName = "java:module/env/" + this.resolvedLookupName; } else { lookupName = "java:jboss/env" + this.resolvedLookupName; } } else if (this.resolvedLookupName.startsWith("java:comp/") && compUsesModule) { lookupName = "java:module/" + this.resolvedLookupName.substring(10); } else { lookupName = this.resolvedLookupName; } final ContextNames.BindInfo bindInfo = ContextNames.bindInfoFor(applicationName, moduleName, componentName, lookupName); if (lookupName.startsWith("java:")) { serviceBuilder.addDependency(bindInfo.getBinderServiceName(), ManagedReferenceFactory.class, injector); } }
/** * {@inheritDoc} */ public void getResourceValue(final ResolutionContext resolutionContext, final ServiceBuilder<?> serviceBuilder, final DeploymentPhaseContext phaseContext, final Injector<ManagedReferenceFactory> injector) { final String applicationName = resolutionContext.getApplicationName(); final String moduleName = resolutionContext.getModuleName(); final String componentName = resolutionContext.getComponentName(); final boolean compUsesModule = resolutionContext.isCompUsesModule(); final String lookupName; if (!this.lookupName.contains("java:")) { if (componentName != null && !compUsesModule) { lookupName = "java:comp/env/" + this.lookupName; } else if (compUsesModule) { lookupName = "java:module/env/" + this.lookupName; } else { lookupName = "java:jboss/env" + this.lookupName; } } else if (this.lookupName.startsWith("java:comp/") && compUsesModule) { lookupName = "java:module/" + this.lookupName.substring(10); } else { lookupName = this.lookupName; } final ContextNames.BindInfo bindInfo = ContextNames.bindInfoFor(applicationName, moduleName, componentName, lookupName); serviceBuilder.addDependency(bindInfo.getBinderServiceName(), ManagedReferenceFactory.class, injector); }