Package org.apache.openejb.component

Examples of org.apache.openejb.component.ClassLoaderEnricher.addUrl()


        // add common lib even in ear "lib" part (if the ear provides myfaces for instance)

        final ClassLoaderEnricher enricher = SystemInstance.get().getComponent(ClassLoaderEnricher.class);
        if (null != enricher) {
            for (final URL url : classLoaderEnricher.enrichment(null)) { // we rely on the fact we know what the impl does with null but that's fine
                enricher.addUrl(url);
            }
        }

        // optional services
        if (optionalService(properties, "org.apache.tomee.webservices.TomeeJaxRsService")) {
View Full Code Here


                        continue;
                    }

                    final File lib = new File(ProvisioningUtil.realLocation(line));
                    if (lib.exists()) {
                        enricher.addUrl(lib.toURI().toURL());
                    } else {
                        throw new OpenEJBRuntimeException("can't find " + line);
                    }
                }
            } catch (Exception e) {
View Full Code Here

            final File[] libs = dir.listFiles();
            if (libs != null) {
                final ClassLoaderEnricher enricher = SystemInstance.get().getComponent(ClassLoaderEnricher.class);
                for (final File lib : libs) {
                    try {
                        enricher.addUrl(lib.toURI().toURL());
                    } catch (MalformedURLException e) {
                        throw new OpenEJBRuntimeException(e);
                    }
                }
            }
View Full Code Here

            final File[] libs = dir.listFiles();
            if (libs != null) {
                final ClassLoaderEnricher enricher = SystemInstance.get().getComponent(ClassLoaderEnricher.class);
                for (File lib : libs) {
                    try {
                        enricher.addUrl(lib.toURI().toURL());
                    } catch (MalformedURLException e) {
                        throw new OpenEJBRuntimeException(e);
                    }
                }
            }
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.