com.vaadin.server.
Class VaadinServiceClassLoaderUtil
- java.lang.Object
-
- com.vaadin.server.VaadinServiceClassLoaderUtil
-
public class VaadinServiceClassLoaderUtil extends Object
Utility class used by
VaadinService.setDefaultClassLoader()
.Since:
7.4
Author:
Vaadin Ltd
-
-
Method Summary
All Methods Modifier and Type Method Description static ClassLoader
findDefaultClassLoader()
Called by
VaadinService.setDefaultClassLoader()
to acquire appropriate class loader to load application's classes (e.g.
-
-
-
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.5Returns:
Instance of
ClassLoader
that should be used by this instance ofVaadinService
Throws:
SecurityException
- if current security policy doesn't allow acquiring current thread's context class loader
-
-