Spring Framework AbstractRefreshableConfigApplicationContext - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework AbstractRefreshableConfigApplicationContext class.

This code example shows how to use the following methods:setDisplayName
 
	/** Namespace of this context, or null if root */ 
	private String namespace; 
 
 
	public AbstractRefreshablePortletApplicationContext() { 
		setDisplayName("Root PortletApplicationContext"); 
	} 
 
	/** 
	 * {@inheritDoc} 
	 * <p>The parent {@linkplain #getEnvironment() environment} is 
	 * delegated to this (child) context if the parent is a 
	 * {@link org.springframework.context.ConfigurableApplicationContext} implementation. 
	 * <p>The parent {@linkplain #getServletContext() servlet context} is 
	 * delegated to this (child) context if the parent is a {@link WebApplicationContext} 
	 * implementation. 
	 */ 
	@Override 
	public void setParent(ApplicationContext parent) { 
6
CodeRank
This code example shows how to use the following methods:setDisplayName
 
	/** the ThemeSource for this ApplicationContext */ 
	private ThemeSource themeSource; 
 
 
	public AbstractRefreshableWebApplicationContext() { 
		setDisplayName("Root WebApplicationContext"); 
	} 
 
 
	@Override 
	public void setServletContext(ServletContext servletContext) { 
		this.servletContext = servletContext; 
	} 
 
	@Override 
	public ServletContext getServletContext() { 
		return this.servletContext; 
	} 
 
6
CodeRank
This code example shows how to use the following methods:getEnvironment, loadBeanDefinitions
    XmlBeanDefinitionReader beanDefinitionReader = new XmlBeanDefinitionReader(beanFactory);
 
    // Configure the bean definition reader with this context's 
    // resource loading environment. 
 
    beanDefinitionReader.setEnvironment(this.getEnvironment());
    beanDefinitionReader.setResourceLoader(this);
    beanDefinitionReader.setEntityResolver(new ResourceEntityResolver(this));
 
    // Disable xml validating 
    beanDefinitionReader.setValidating(false);
    // Allow a subclass to provide custom initialization of the reader, 
    // then proceed with actually loading the bean definitions. 
    loadBeanDefinitions(beanDefinitionReader);
  } 
 
  protected void loadBeanDefinitions(XmlBeanDefinitionReader reader) throws IOException {
    String[] configLocations = getConfigLocations();
    if (configLocations != null) {
      for (String configLocation : configLocations) {
5
CodeRank