context.setAttribute(key, value);
}
};
//
InjectorProvider injectorProvider = bridgeConfig.injectorProvider;
if (injectorProvider == null) {
throw new UnavailableException("No inject implementation selected");
} else {
portletLogger.info("Using inject implementation " + injectorProvider.getValue());
}
//
Injector injector = injectorProvider.get();
if (injector instanceof SpringInjector) {
SpringInjector springInjector = (SpringInjector)injector;
Object parent = context.getAttribute("org.springframework.web.context.WebApplicationContext.ROOT");
if (parent != null) {
springInjector.setParent(parent);