Class FilesystemGenericApplicationContext

    • Constructor Detail

      • FilesystemGenericApplicationContext

        public FilesystemGenericApplicationContext()
        Constructor.
      • FilesystemGenericApplicationContext

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

        public FilesystemGenericApplicationContext​(ApplicationContext parent)
        Constructor.
        Parameters:
        parent - parent context
      • FilesystemGenericApplicationContext

        public FilesystemGenericApplicationContext​(DefaultListableBeanFactory beanFactory,
                                                   ApplicationContext parent)
        Constructor.
        Parameters:
        beanFactory - bean factory
        parent - parent 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 DefaultResourceLoader