Examples of VirtualWebappLoader


Examples of org.apache.catalina.loader.VirtualWebappLoader

            return; // no need to replace the loader
        }

        // we just want to wrap it to lazy stop it (afterstop)
        // to avoid classnotfound in @PreDestoy or destroyApplication()
        final VirtualWebappLoader loader = new ProvisioningWebappLoader();
        loader.setDelegate(standardContext.getDelegate());
        loader.setLoaderClass(LazyStopWebappClassLoader.class.getName());

        if (VirtualWebappLoader.class.isInstance(standardContextLoader)) {
            final VirtualWebappLoader vwl = VirtualWebappLoader.class.cast(standardContextLoader);
            loader.setSearchVirtualFirst(vwl.getSearchVirtualFirst());
            loader.setVirtualClasspath(String.class.cast(Reflections.get(vwl, "virtualClasspath")));
        }

        final Loader lazyStopLoader = new LazyStopLoader(loader);
        standardContext.setLoader(lazyStopLoader);
View Full Code Here

Examples of org.apache.catalina.loader.VirtualWebappLoader

            return; // no need to replace the loader
        }

        // we just want to wrap it to lazy stop it (afterstop)
        // to avoid classnotfound in @PreDestoy or destroyApplication()
        final VirtualWebappLoader loader = new ProvisioningWebappLoader();
        loader.setDelegate(standardContext.getDelegate());
        loader.setLoaderClass(LazyStopWebappClassLoader.class.getName());

        if (VirtualWebappLoader.class.isInstance(standardContextLoader)) {
            final VirtualWebappLoader vwl = VirtualWebappLoader.class.cast(standardContextLoader);
            loader.setSearchVirtualFirst(vwl.getSearchVirtualFirst());
            loader.setVirtualClasspath(String.class.cast(Reflections.get(vwl, "virtualClasspath")));
        }

        final Loader lazyStopLoader = new LazyStopLoader(loader);
        standardContext.setLoader(lazyStopLoader);
View Full Code Here

Examples of org.apache.catalina.loader.VirtualWebappLoader

            return; // no need to replace the loader
        }

        // we just want to wrap it to lazy stop it (afterstop)
        // to avoid classnotfound in @PreDestoy or destroyApplication()
        final VirtualWebappLoader loader = new ProvisioningWebappLoader();
        loader.setDelegate(standardContext.getDelegate());
        loader.setLoaderClass(LazyStopWebappClassLoader.class.getName());

        if (VirtualWebappLoader.class.isInstance(standardContextLoader)) {
            final VirtualWebappLoader vwl = VirtualWebappLoader.class.cast(standardContextLoader);
            loader.setSearchVirtualFirst(vwl.getSearchVirtualFirst());
            loader.setVirtualClasspath(String.class.cast(Reflections.get(vwl, "virtualClasspath")));
        }

        final Loader lazyStopLoader = new LazyStopLoader(loader);
        standardContext.setLoader(lazyStopLoader);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.