public void onChange() { // Remove the ModificationWatcher from the current reloading class loader reloadingClassLoader.destroy(); /* * Create a new classloader, as there is no way to clear a ClassLoader's cache. This * supposes that we don't share objects across application instances, this is almost * true, except for Wicket's Session object. */ reloadingClassLoader = new ReloadingClassLoader(getClass().getClassLoader()); try { init(filterConfig); } catch (ServletException e) { throw new RuntimeException(e); } } });
public void onChange() { // Remove the ModificationWatcher from the current reloading class loader reloadingClassLoader.destroy(); /* * Create a new classloader, as there is no way to clear a ClassLoader's cache. This * supposes that we don't share objects across application instances, this is almost * true, except for Wicket's Session object. */ reloadingClassLoader = new ReloadingClassLoader(getClass().getClassLoader()); try { init(filterConfig); } catch (ServletException e) { throw new RuntimeException(e); } } });
@Override public void onChange(Class<?> clz) { destroy(); // Remove the ModificationWatcher from the current reloading class loader reloadingClassLoader.destroy(); /* * Create a new classloader, as there is no way to clear a ClassLoader's cache. This * supposes that we don't share objects across application instances, this is almost * true, except for Wicket's Session object. */ reloadingClassLoader = new ReloadingClassLoader(getClass().getClassLoader()); try { init(filterConfig); } catch (ServletException e) { throw new RuntimeException(e); } } });
@Override public void onChange(Class<?> clz) { destroy(); // Remove the ModificationWatcher from the current reloading class loader reloadingClassLoader.destroy(); /* * Create a new classloader, as there is no way to clear a ClassLoader's cache. This * supposes that we don't share objects across application instances, this is almost * true, except for Wicket's Session object. */ reloadingClassLoader = new ReloadingClassLoader(getClass().getClassLoader()); try { init(filterConfig); } catch (ServletException e) { throw new RuntimeException(e); } } });