Search in sources :

Example 1 with ImmediateManagedReferenceFactory

use of org.jboss.as.naming.ImmediateManagedReferenceFactory in project wildfly by wildfly.

the class EEConcurrentAbstractService method bindValueToJndi.

private void bindValueToJndi(final StartContext context) {
    final ContextNames.BindInfo bindInfo = ContextNames.bindInfoFor(jndiName);
    final BinderService binderService = new BinderService(bindInfo.getBindName());
    final ImmediateManagedReferenceFactory managedReferenceFactory = new ImmediateManagedReferenceFactory(getValue());
    context.getChildTarget().addService(bindInfo.getBinderServiceName(), binderService).addInjectionValue(binderService.getManagedObjectInjector(), new ImmediateValue<ManagedReferenceFactory>(managedReferenceFactory)).addDependency(bindInfo.getParentContextServiceName(), ServiceBasedNamingStore.class, binderService.getNamingStoreInjector()).install();
}
Also used : BinderService(org.jboss.as.naming.service.BinderService) ServiceBasedNamingStore(org.jboss.as.naming.ServiceBasedNamingStore) ImmediateManagedReferenceFactory(org.jboss.as.naming.ImmediateManagedReferenceFactory) ManagedReferenceFactory(org.jboss.as.naming.ManagedReferenceFactory) ContextNames(org.jboss.as.naming.deployment.ContextNames) ImmediateManagedReferenceFactory(org.jboss.as.naming.ImmediateManagedReferenceFactory)

Aggregations

ImmediateManagedReferenceFactory (org.jboss.as.naming.ImmediateManagedReferenceFactory)1 ManagedReferenceFactory (org.jboss.as.naming.ManagedReferenceFactory)1 ServiceBasedNamingStore (org.jboss.as.naming.ServiceBasedNamingStore)1 ContextNames (org.jboss.as.naming.deployment.ContextNames)1 BinderService (org.jboss.as.naming.service.BinderService)1