// add each jndi name as a dependency
// Note: The dependency resolution of a dependency with prefix JNDIKernelRegistryPlugin.JNDI_DEPENDENCY_PREFIX
// is handled by JNDIKernelRegistryPlugin, which does a JNDI lookup to see if the dependency is resolved.
// Effectively, none of the MC beans have to add the jndi name as an explicit supply. So when the
// corresponding jndi binder binds this jndi name to JNDI tree, the dependency will be marked as resolved
containerDependencyPolicy.addDependency(JNDIKernelRegistryPlugin.JNDI_DEPENDENCY_PREFIX + jndiName);
}
String dependencyBeanContainerName = dependencyBean.getContainerName();
// create a @Inject
AbstractInjectionValueMetaData containerDependencyInjection = new AbstractInjectionValueMetaData(dependencyBeanContainerName);
// add the @Inject to a list which will then be set on the container