Examples of BundleGeneration


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

Examples of org.papoose.core.BundleGeneration

        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

Examples of org.papoose.core.BundleGeneration

        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

Examples of org.papoose.core.BundleGeneration

        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

Examples of org.papoose.core.BundleGeneration

            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

Examples of org.papoose.core.BundleGeneration

            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

Examples of org.papoose.core.BundleGeneration

            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
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.