Examples of XCapability


Examples of org.jboss.osgi.resolver.XCapability

                    contentFile = getRepositoryEntry(modulesDir, moduleIdentifier);
                }
                if (contentFile != null) {
                    URL contentURL = contentFile.toURI().toURL();
                    XResourceBuilder builder = URLResourceBuilderFactory.create(contentURL, null, true);
                    XCapability cap = builder.addCapability(MODULE_IDENTITY_NAMESPACE, moduleId);
                    builder.getResource();
                    result.add(cap);
                }
            } catch (RepositoryResolutionException ex) {
                throw ex;
View Full Code Here

Examples of org.jboss.osgi.resolver.XCapability

            MavenCoordinates mavenId = MavenCoordinates.parse(identifier);
            Requirement req = XRequirementBuilder.create(mavenId).getRequirement();
            Collection<Capability> caps = repository.findProviders(req);
            if (caps.isEmpty() == false) {
                XResource resource = (XResource) caps.iterator().next().getResource();
                XCapability ccap = (XCapability) resource.getCapabilities(ContentNamespace.CONTENT_NAMESPACE).get(0);
                URL bundleURL = new URL((String) ccap.getAttribute(ContentNamespace.CAPABILITY_URL_ATTRIBUTE));
                deployment = getDeploymentFromURL(bundleURL, identifier, level);
            }
        }

        if (deployment == null)
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.