AbstractRefreshableWebApplicationContext getNamespace - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for AbstractRefreshableWebApplicationContext getNamespace method.

This code example shows how to use the following methods:getNamespace
     * and "/WEB-INF/test-servlet.xml" for a context with the namespace "test-servlet" 
     * (like for a DispatcherServlet instance with the servlet-name "test"). 
    protected String[] getDefaultConfigLocations() { 
        if (getNamespace() != null) { 
            return new String[]{DEFAULT_CONFIG_LOCATION_PREFIX + getNamespace() + DEFAULT_CONFIG_LOCATION_SUFFIX}; 
        } else { 
            return new String[]{DEFAULT_CONFIG_LOCATION};