Class AbstractApplicationAdapter

    • Constructor Detail

      • AbstractApplicationAdapter

        public AbstractApplicationAdapter​(java.lang.String basePath,
                                          java.lang.ClassLoader classLoader)
        Instantiates a new AbstractApplicationAdapter.
    • Method Detail

      • getBasePath

        public java.lang.String getBasePath()
        Description copied from interface: ApplicationAdapter
        Returns the base path that the current application is mapped to.
        Specified by:
        getBasePath in interface ApplicationAdapter
        Returns:
        the application base path
      • getClassLoader

        public java.lang.ClassLoader getClassLoader()
        Description copied from interface: ApplicationAdapter
        Returns the class loader used by the current application.
        Specified by:
        getClassLoader in interface ApplicationAdapter
        Returns:
        the class loader
      • toRealPath

        public java.lang.String toRealPath​(java.lang.String filePath)
                                    throws java.io.IOException
        Description copied from interface: ApplicationAdapter
        Returns to convert the given file path with the real file path.
        Specified by:
        toRealPath in interface ApplicationAdapter
        Parameters:
        filePath - the specified file path
        Returns:
        the real file path
        Throws:
        java.io.IOException - if an I/O error has occurred
      • toRealPathAsFile

        public java.io.File toRealPathAsFile​(java.lang.String filePath)
                                      throws java.io.IOException
        Description copied from interface: ApplicationAdapter
        Returns to convert the given file path with the real file path.
        Specified by:
        toRealPathAsFile in interface ApplicationAdapter
        Parameters:
        filePath - the specified file path
        Returns:
        the real file path
        Throws:
        java.io.IOException - if an I/O error has occurred