Package org.rioproject.resolver

Examples of org.rioproject.resolver.Resolver


        }
    }

    public void verifyOperationalString(final OperationalString opString, final RemoteRepository[] repositories)
        throws ResolverException, IOException {
        Resolver resolver = ResolverHelper.getResolver();
        for(ServiceElement service : opString.getServices()) {
            verifyOperationalStringService(service,
                                           resolver,
                                           mergeRepositories(repositories, service.getRemoteRepositories()));
        }
View Full Code Here


            return args;
        if(Artifact.isArtifact(args[0])) {
            logger.debug("Loading configuration {} as an artifact", args[0]);
            URL configLocation = null;
            try {
                Resolver resolver = ResolverHelper.getResolver();
                Artifact artifact = new Artifact(args[0]);
                configLocation = resolver.getLocation(artifact.getGAV(),
                                                      artifact.getType(),
                                                      service.getRemoteRepositories());
                return new String[]{new File(configLocation.toURI()).getPath()};
            } catch(ResolverException e) {
                throw new IOException("Could not resolve "+args[0], e);
View Full Code Here

        if (rioHome == null)
            throw new RuntimeException("RIO_HOME property not declared");
        Map<Artifact, String> rioArtifactJars = new HashMap<Artifact, String>();
        ClassLoader cCL = Thread.currentThread().getContextClassLoader();
        try {
            Resolver r = ResolverHelper.getResolver();
            ClassLoader resolverLoader = r.getClass().getClassLoader();
            Thread.currentThread().setContextClassLoader(resolverLoader);
            Object aetherServiceInstance = null;
            try {
                Class<?> aetherService = resolverLoader.loadClass("org.rioproject.resolver.aether.AetherService");
                Method getDefaultInstance = aetherService.getDeclaredMethod("getDefaultInstance");
View Full Code Here

         */
        URL[] exports = new URL[0];
        URL[] implJARs = new URL[0];
        if(System.getProperty("StaticCybernode")==null) {
            try {
                Resolver resolver = ResolverHelper.getResolver();
                boolean install = computeResource.getPersistentProvisioning();
                Map<String, ProvisionedResources> serviceResources = provisionService(sElem, resolver, install);
                ProvisionedResources dlPR = serviceResources.get("dl");
                ProvisionedResources implPR = serviceResources.get("impl");
                if(dlPR.getJars().length==0 && dlPR.getArtifact()!=null) {
View Full Code Here

TOP

Related Classes of org.rioproject.resolver.Resolver

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.