public static void loadComponent(Class iface, Object component) { getInstance().loadComponent(iface, component); }
public static void loadComponent(String ifaceName, Object component) { getInstance().loadComponent(ifaceName, component); }
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { if (applicationContext instanceof WebApplicationContext) { setWebApplicationContext((WebApplicationContext)applicationContext); if (getGlobalBeanId() != null) { WebappResourceManager other = (WebappResourceManager) ComponentManager.getInstance().get(getGlobalBeanId()); if (other != null) { other.setWebApplicationContext((WebApplicationContext) applicationContext); } else { ComponentManager.getInstance().loadComponent(getGlobalBeanId(), this); } } } else { throw new BeanDefinitionValidationException( "WebappResourceManagerImpl must be used in a Web application context"); } }