Package org.papoose.core

Examples of org.papoose.core.BundleGeneration


        for (Generation generation : bundles)
        {
            if (generation instanceof BundleGeneration)
            {
                BundleGeneration bundleGeneration = (BundleGeneration) generation;

                if (generation.getState() != Bundle.INSTALLED)
                {
                    result.add(new Resolved(bundleGeneration));
                }
View Full Code Here


        for (CandidateBundle candidate : checkPoint.getUsed())
        {
            if (candidate instanceof Resolved)
            {
                Resolved resolvedHost = (Resolved) candidate;
                BundleGeneration bundleGeneration = resolvedHost.getBundleGeneration();

                if (requireDescription.getSymbolName().equals(bundleGeneration.getSymbolicName()))
                {
                    if (prameters.containsKey(Constants.BUNDLE_VERSION_ATTRIBUTE))
                    {
                        VersionRange range = (VersionRange) prameters.get(Constants.BUNDLE_VERSION_ATTRIBUTE);

                        if (range.includes(bundleGeneration.getVersion()))
                        {
                            result.add(candidate);
                        }
                    }
                    else
                    {
                        result.add(candidate);
                    }
                }
            }
            else if (candidate instanceof UnBound)
            {
                assert false;
            }
            else
            {
                BoundHost bound = (BoundHost) candidate;
                BundleGeneration bundleGeneration = bound.getBundleGeneration();

                if (requireDescription.getSymbolName().equals(bundleGeneration.getSymbolicName()))
                {
                    if (prameters.containsKey(Constants.BUNDLE_VERSION_ATTRIBUTE))
                    {
                        VersionRange range = (VersionRange) prameters.get(Constants.BUNDLE_VERSION_ATTRIBUTE);

                        if (range.includes(bundleGeneration.getVersion()))
                        {
                            result.add(candidate);
                        }
                    }
                    else
View Full Code Here

        for (Candidate candidate : checkPoint.getUnused())
        {
            if (candidate instanceof Resolved)
            {
                Resolved resolvedHost = (Resolved) candidate;
                BundleGeneration bundleGeneration = resolvedHost.getBundleGeneration();

                if (requireDescription.getSymbolName().equals(bundleGeneration.getSymbolicName()))
                {
                    if (prameters.containsKey(Constants.BUNDLE_VERSION_ATTRIBUTE))
                    {
                        VersionRange range = (VersionRange) prameters.get(Constants.BUNDLE_VERSION_ATTRIBUTE);

                        if (range.includes(bundleGeneration.getVersion()))
                        {
                            result.add(candidate);
                        }
                    }
                    else
                    {
                        result.add(candidate);
                    }
                }
            }
            else if (candidate instanceof UnBound)
            {
                UnBound unBound = (UnBound) candidate;
                Generation bundleGeneration = unBound.getToBeResolved();

                if (requireDescription.getSymbolName().equals(bundleGeneration.getSymbolicName()))
                {
                    if (prameters.containsKey(Constants.BUNDLE_VERSION_ATTRIBUTE))
                    {
                        VersionRange range = (VersionRange) prameters.get(Constants.BUNDLE_VERSION_ATTRIBUTE);

                        if (range.includes(bundleGeneration.getVersion()))
                        {
                            result.add(candidate);
                        }
                    }
                    else
View Full Code Here

        for (RequiredBundleWrapper bundleWrapper : candidateRequiredBundles)
        {
            if (bundleWrapper.isReExport())
            {
                BundleGeneration requiredBundle = bundleWrapper.getBundleGeneration();
                for (ExportDescription description : requiredBundle.getArchiveStore().getExportDescriptions())
                {
                    for (String packageName : description.getPackageNames())
                    {
                        List<ExportDescription> list = descriptions.get(packageName);
                        if (list == null) descriptions.put(packageName, list = new ArrayList<ExportDescription>());
View Full Code Here

            if (generation instanceof BundleGeneration)
            {
                LOGGER.finest("Bundle is a regular bundleGeneration");

                BundleGeneration bundle = (BundleGeneration) generation;
                for (ExportDescription exportDescription : bundle.getArchiveStore().getExportDescriptions())
                {
                    for (String packageName : exportDescription.getPackageNames())
                    {
                        List<BundleGeneration> bundleList = indexByPackage.get(packageName);
                        if (bundleList == null) continue;
View Full Code Here

            List<Solution.RequiredBundleWrapper> requiredBundles = new ArrayList<Solution.RequiredBundleWrapper>();

            for (RequiredBundleWrapper requiredBundle : candidateBundle.getCandidateRequiredBundles())
            {
                BundleGeneration bundleGeneration = requiredBundle.getBundleGeneration();

                for (ExportDescription description : bundleGeneration.getArchiveStore().getExportDescriptions())
                {
                    for (String packageName : description.getPackageNames())
                    {
                        Wire wire = new Wire(packageName, description, bundleGeneration);
                        requiredBundles.add(new Solution.RequiredBundleWrapper(wire, requiredBundle.isReExport()));
View Full Code Here

            UnBound unbound = unResolved.remove(0);
            Generation generation = unbound.getToBeResolved();

            if (generation instanceof BundleGeneration)
            {
                BundleGeneration host = (BundleGeneration) generation;
                List<FragmentGeneration> availableFragments = ResolverUtils.collectAvailableFragments(host, checkPoint.getUnused());

                for (List<FragmentGeneration> fragments : Util.combinations(availableFragments))
                {
                    try
View Full Code Here

TOP

Related Classes of org.papoose.core.BundleGeneration

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.