Class FilesystemGenericWebApplicationContext

    • Constructor Detail

      • FilesystemGenericWebApplicationContext

        public FilesystemGenericWebApplicationContext()
        Constructor.
      • FilesystemGenericWebApplicationContext

        public FilesystemGenericWebApplicationContext​(DefaultListableBeanFactory beanFactory)
        Constructor.
        Parameters:
        beanFactory - bean factory
      • FilesystemGenericWebApplicationContext

        public FilesystemGenericWebApplicationContext​(javax.servlet.ServletContext context)
        Constructor.
        Parameters:
        context - servlet context
      • FilesystemGenericWebApplicationContext

        public FilesystemGenericWebApplicationContext​(DefaultListableBeanFactory beanFactory,
                                                      javax.servlet.ServletContext context)
        Constructor.
        Parameters:
        beanFactory - bean factory
        context - servlet context
    • Method Detail

      • getResourceByPath

        protected Resource getResourceByPath​(String path)

        Overrides the standard behavior of path-only resources and treats them as file paths if the path exists. Note that this differs from the ordinary Spring contexts that default to file paths because paths are treated as absolute if they are in fact absolute.

        Overrides:
        getResourceByPath in class GenericWebApplicationContext