Examples of EZBClassLoader


Examples of org.ow2.easybeans.api.loader.EZBClassLoader

     * @param transformer A provider-supplied transformer that the Container
     *        invokes at class-(re)definition time
     */
    public void addTransformer(final ClassTransformer transformer) {
        if (this.classLoader instanceof EZBClassLoader) {
            EZBClassLoader currentCL = (EZBClassLoader) this.classLoader;
            currentCL.addTransformer(transformer);
            return;
        }
        throw new IllegalStateException("Cannot add the given transformer as ClassLoader is not an EasyBeans classloader");
    }
View Full Code Here

Examples of org.ow2.easybeans.api.loader.EZBClassLoader

     * returning it to the provider.
     * @return Temporary ClassLoader with same visibility as current loader
     */
    public ClassLoader getNewTempClassLoader() {
        if (this.classLoader instanceof EZBClassLoader) {
            EZBClassLoader currentCL = (EZBClassLoader) this.classLoader;
            return currentCL.duplicate();
        }
        // else, try to see if it's an URL classLoader
        if (this.classLoader instanceof URLClassLoader) {
            return new URLClassLoader(((URLClassLoader) this.classLoader).getURLs(), this.classLoader.getParent());
        }
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.