manager = _localContainer.getLevel(loader);
if (manager != null)
return manager;
EnvironmentClassLoader envLoader
= Environment.getEnvironmentClassLoader(loader);
// ejb doesn't create a new InjectManager even though it's a new
// environment
// XXX: yes it does, because of the SessionContext
// ejb/2016 vs ejb/12h0
/*
if (envLoader != null
&& Boolean.FALSE.equals(envLoader.getAttribute("caucho.inject"))) {
manager = create(envLoader.getParent());
if (manager != null)
return manager;
}
*/
String id;
if (envLoader != null)
id = envLoader.getId();
else
id = "";
InjectManager parent = null;
if (envLoader != null && envLoader != _systemClassLoader)
parent = create(envLoader.getParent());
synchronized (_localContainer) {
manager = _localContainer.getLevel(envLoader);
if (manager != null)