Package org.apache.openejb.util

Examples of org.apache.openejb.util.Enumerator


                        // create a new ProxyInfo based on the deployment info and primary key and add it to the vector
                        proxies.add(new ProxyInfo(beanContext, primaryKey));
                    }
                }
                if (callMethod.getReturnType() == Enumeration.class) {
                    return new Enumerator(proxies);
                } else {
                    return proxies;
                }
            } else {
                if (results.size() != 1) {
View Full Code Here


                        // create a new ProxyInfo based on the deployment info and primary key and add it to the vector
                        proxies.add(new ProxyInfo(beanContext, primaryKey));
                    }
                }
                if (callMethod.getReturnType() == Enumeration.class) {
                    return new Enumerator(proxies);
                } else {
                    return proxies;
                }
            } else {
                if (results.size() != 1) {
View Full Code Here

        }
        return super.findResources(name);
    }

    private static Enumeration<URL> enumerator(final URL url) {
        return new Enumerator(Arrays.asList(url));
    }
View Full Code Here

    @Override
    protected Enumeration<URL> findResources(final String name) throws IOException {
        final ArchivePath path = ArchivePaths.create(prefix + name);
        final Node node = archive.get(path);
        if (node != null) {
            return new Enumerator(Arrays.asList(new URL(null, "archive:" + archive.getName() + "/", new ArchiveStreamHandler(node, closeables))));
        }
        return super.findResources(name);
    }
View Full Code Here

TOP

Related Classes of org.apache.openejb.util.Enumerator

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.