Class VaadinServiceClassLoaderUtil

    • Method Detail

      • findDefaultClassLoader

        public static ClassLoader findDefaultClassLoader()
                                                  throws SecurityException
        Called by VaadinService.setDefaultClassLoader() to acquire appropriate class loader to load application's classes (e.g. UI). Calls should be guarded by try/catch block to catch SecurityException and log appropriate message. The code for this method is modeled after recommendations laid out by JEE 5 specification sections EE.6.2.4.7 and EE.8.2.5
        Returns:
        Instance of ClassLoader that should be used by this instance of VaadinService
        Throws:
        SecurityException - if current security policy doesn't allow acquiring current thread's context class loader