Package org.apache.xbean.classloader

Examples of org.apache.xbean.classloader.MultiParentClassLoader


                urls.add(f.getCanonicalFile().toURL());
            } catch (IOException e) {
                throw new IllegalArgumentException("Shared library classpath entry not found: '" + classPathName + "'");
            }
        }
        return new MultiParentClassLoader(
                library.getIdentification().getName(),
                urls.toArray(new URL[urls.size()]),
                parent,
                !parentFirst,
                new String[0],
View Full Code Here


                throw new IllegalArgumentException("Component classpath entry not found: '" + classPathNames[i] + "'");
            }
        }

        // Create classloader
        return new MultiParentClassLoader(
                name,
                urls.toArray(new URL[urls.size()]),
                parents,
                !parentFirst,
                new String[0],
View Full Code Here

                throw new IllegalArgumentException("SharedLibrary classpath entry not found: '" +  classPathNames[i] + "'");
            }
        }

        // Create classloader
        return new MultiParentClassLoader(
                        component.getIdentification().getName(),
                        urls,
                        parents,
                        component.isComponentClassLoaderDelegationSelfFirst(),
                        new String[] {"javax.xml.bind"},
View Full Code Here

                urls[i] = bundle.getResource(classPathNames[i]);
                if (urls[i] == null) {
                    throw new IllegalArgumentException("SharedLibrary classpath entry not found: '" +  classPathNames[i] + "'");
                }
            }
            classLoader = new MultiParentClassLoader(
                            library.getIdentification().getName(),
                            urls,
                            parent,
                            !parentFirst,
                            new String[0],
View Full Code Here

                throw new IllegalArgumentException("SharedLibrary classpath entry not found: '" +  classPathNames[i] + "'");
            }
        }

        // Create classloader
        return new MultiParentClassLoader(
                        component.getIdentification().getName(),
                        urls,
                        parents,
                        component.isComponentClassLoaderDelegationSelfFirst(),
                        new String[0],
View Full Code Here

                throw new IllegalArgumentException("Component classpath entry not found: '" + classPathNames[i] + "'");
            }
        }

        // Create classloader
        return new MultiParentClassLoader(
                name,
                urls.toArray(new URL[urls.size()]),
                parents,
                !parentFirst,
                new String[0],
View Full Code Here

                urls.add(f.getCanonicalFile().toURL());
            } catch (IOException e) {
                throw new IllegalArgumentException("Shared library classpath entry not found: '" + classPathName + "'");
            }
        }
        return new MultiParentClassLoader(
                library.getIdentification().getName(),
                urls.toArray(new URL[urls.size()]),
                parent,
                !parentFirst,
                new String[0],
View Full Code Here

                throw new IllegalArgumentException("SharedLibrary classpath entry not found: '" +  classPathNames[i] + "'");
            }
        }

        // Create classloader
        return new MultiParentClassLoader(
                        component.getIdentification().getName(),
                        urls,
                        parents,
                        component.isComponentClassLoaderDelegationSelfFirst(),
                        new String[] {"javax.xml.bind"},
View Full Code Here

    }

    public ServerInfo createBroker(String uri, Properties properties) throws Exception {
        CONFIG_PROPERTIES.set(properties);
        try {
            ClassLoader classLoader = new MultiParentClassLoader("xbean", new URL[0], new ClassLoader[] {
                this.getClass().getClassLoader(),
                BrokerService.class.getClassLoader()
            });
            Thread.currentThread().setContextClassLoader(classLoader);
View Full Code Here

TOP

Related Classes of org.apache.xbean.classloader.MultiParentClassLoader

Copyright © 2018 www.massapicom. 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.