Package org.apache.openejb.loader.provisining

Examples of org.apache.openejb.loader.provisining.ProvisioningResolver$LocalInputStream


        initDefaultComponents();
    }

    private static void initDefaultComponents() {
        final SystemInstance systemInstance = get();
        systemInstance.components.put(ProvisioningResolver.class, new ProvisioningResolver());
    }
View Full Code Here


            return Collections.emptyList();
        }

        final Properties additionalLibProperties = IO.readProperties(conf);

        final ProvisioningResolver resolver = SystemInstance.get().getComponent(ProvisioningResolver.class);
        if (resolver == null) {
            throw new IllegalStateException("SystemInstance not ready");
        }

        final List<String> libToCopy = new LinkedList<>();
        final String toCopy = additionalLibProperties.getProperty(JAR_KEY);
        if (toCopy != null) {
            for (final String lib : toCopy.split(",")) {
                libToCopy.addAll(resolver.realLocation(lib.trim()));
            }
        }
        final String toExtract = additionalLibProperties.getProperty(ZIP_KEY);
        if (toExtract != null) {
            for (final String zip : toExtract.split(",")) {
                final Set<String> strings = resolver.realLocation(zip);
                if (strings.size() != 1) {
                    throw new IllegalArgumentException("Didnt find a single zip: " + strings);
                }
                libToCopy.addAll(extract(strings.iterator().next()));
            }
View Full Code Here

        final boolean initialized = SystemInstance.isInitialized();
        if (!initialized) {
            if (DEFAULT_PROVISIONING_RESOLVER == null) {
                synchronized (ProvisioningUtil.class) {
                    if (DEFAULT_PROVISIONING_RESOLVER == null) {
                        DEFAULT_PROVISIONING_RESOLVER = new ProvisioningResolver();
                    }
                }
            }
            return DEFAULT_PROVISIONING_RESOLVER.realLocation(location);
        }
View Full Code Here

        initDefaultComponents();
    }

    private static void initDefaultComponents() {
        final SystemInstance systemInstance = get();
        systemInstance.components.put(ProvisioningResolver.class, new ProvisioningResolver());
    }
View Full Code Here

TOP

Related Classes of org.apache.openejb.loader.provisining.ProvisioningResolver$LocalInputStream

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.