// Create the binding from whence our injection comes.
final InjectionSource serviceRefSource = new WSRefValueSource(serviceRefUMDM);
final BindingConfiguration bindingConfiguration = new BindingConfiguration(bindingName, serviceRefSource);
componentDescription.getBindingConfigurations().add(bindingConfiguration);
// our injection comes from the local lookup, no matter what.
final ResourceInjectionConfiguration injectionConfiguration = injectionTarget != null ? new ResourceInjectionConfiguration(injectionTarget, new LookupInjectionSource(bindingName)) : null;
if (injectionConfiguration != null) {
componentDescription.addResourceInjection(injectionConfiguration);
}
}
}
if (!isEJB) {
final UnifiedServiceRefMetaData serviceRefUMDM = getServiceRef(unit, null, bindingName);
initServiceRef(unit, serviceRefUMDM, type, annotation);
processWSFeatures(unit, serviceRefUMDM, injectionTarget, classInfo);
// TODO: class hierarchies? shared bindings?
final EEModuleClassDescription classDescription = moduleDescription.addOrGetLocalClassDescription(classInfo.name().toString());
// Create the binding from whence our injection comes.
final InjectionSource serviceRefSource = new WSRefValueSource(serviceRefUMDM);
final BindingConfiguration bindingConfiguration = new BindingConfiguration(bindingName, serviceRefSource);
classDescription.getBindingConfigurations().add(bindingConfiguration);
// our injection comes from the local lookup, no matter what.
final ResourceInjectionConfiguration injectionConfiguration = injectionTarget != null ?
new ResourceInjectionConfiguration(injectionTarget, new LookupInjectionSource(bindingName)) : null;
if (injectionConfiguration != null) {
classDescription.addResourceInjection(injectionConfiguration);
}
}
}