Package com.vaadin.server
Class VaadinServiceClassLoaderUtil
- java.lang.Object
-
- com.vaadin.server.VaadinServiceClassLoaderUtil
-
public class VaadinServiceClassLoaderUtil extends Object
Utility class used byVaadinService.setDefaultClassLoader()
.- Since:
- 7.4
- Author:
- Vaadin Ltd
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClassLoader
findDefaultClassLoader()
Called byVaadinService.setDefaultClassLoader()
to acquire appropriate class loader to load application's classes (e.g.
-
-
-
Method Detail
-
findDefaultClassLoader
public static ClassLoader findDefaultClassLoader() throws SecurityException
Called byVaadinService.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 ofVaadinService
- Throws:
SecurityException
- if current security policy doesn't allow acquiring current thread's context class loader
-
-