Package org.springframework.web.context.support

Examples of org.springframework.web.context.support.ServletContextResourcePatternResolver


    /** {@inheritDoc} */
    @Override
    public void initialize(ServletContext context) {
        super.initialize(context);

        resolver = new ServletContextResourcePatternResolver(context);
    }
View Full Code Here


  private final ResourcePatternResolver resolver;


  public SpringWildcardServletTilesApplicationContext(ServletContext servletContext) {
    super(servletContext);
    this.resolver = new ServletContextResourcePatternResolver(servletContext);
  }
View Full Code Here

  private final ResourcePatternResolver resolver;


  public SpringWildcardServletTilesApplicationContext(ServletContext servletContext) {
    super(servletContext);
    this.resolver = new ServletContextResourcePatternResolver(servletContext);
  }
View Full Code Here

  /**
   * Class constructor.
   */
  public StubWebApplicationContext(ServletContext servletContext) {
    this.servletContext = servletContext;
    this.resourcePatternResolver = new ServletContextResourcePatternResolver(servletContext);
  }
View Full Code Here

        this.mergedInitParams.put(initParamName, servletContext.getInitParameter(initParamName));
      }
      if (params != null) {
        this.mergedInitParams.putAll(params);
      }
      this.resolver = new ServletContextResourcePatternResolver(servletContext);
    }
View Full Code Here

        Map<String, String> componentNamesAndLocations = createTreeMap();

        if (componentsConfig.isAutoDiscoverComponents()) {
            try {
                ResourcePatternResolver resolver = new ServletContextResourcePatternResolver(servletContext);
                Resource[] componentConfigurations = resolver.getResources(locationPattern);
                Pattern pattern = compilePathName(pathPattern);

                if (componentConfigurations != null) {
                    for (Resource resource : componentConfigurations) {
                        String path = resource.getURL().getPath();
View Full Code Here

        Map<String, String> componentNamesAndLocations = createTreeMap();

        if (componentsConfig.isAutoDiscoverComponents()) {
            try {
                ResourcePatternResolver resolver = new ServletContextResourcePatternResolver(servletContext);
                Resource[] componentConfigurations = resolver.getResources(locationPattern);
                Pattern pattern = compilePathName(pathPattern);

                if (componentConfigurations != null) {
                    for (Resource resource : componentConfigurations) {
                        String path = resource.getURL().getPath();
View Full Code Here

  /* Dependencies */

  @Override
  public void setServletContext(final ServletContext servletContext) {
    this.servletContext = servletContext;
    resourcePatternResolver = new ServletContextResourcePatternResolver(servletContext);
  }
View Full Code Here

TOP

Related Classes of org.springframework.web.context.support.ServletContextResourcePatternResolver

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.