Interface IAppOwner

  • All Known Implementing Classes:
    AppFactory

    public interface IAppOwner
    Interface implemented by the application owner to perform various session or application specific functions, such as to get the class loader, etc.
    Author:
    Christopher Mindus
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethodDescription
      java.lang.StringgetAppID()
      Gets the application ID.
      java.lang.ClassLoadergetCommonClassLoader()
      Gets the common class loader for the application used to load the user classes for the application.
      java.lang.ObjectgetFileOrResource​(java.lang.String target)
      Gets the URL or File resource to a target reference.
    • Method Detail

      • getAppID

        java.lang.String getAppID()
        Gets the application ID.
      • getCommonClassLoader

        java.lang.ClassLoader getCommonClassLoader()
        Gets the common class loader for the application used to load the user classes for the application.
        Returns:
        A class loader.
      • getFileOrResource

        java.lang.Object getFileOrResource​(java.lang.String target)
        Gets the URL or File resource to a target reference.
        Parameters:
        target - The target reference as a normal Module reference string "module:/path/resource".
        Returns:
        The File or org.eclipse.jetty.util.resource.Resource for a Jetty Resource, null for none.