Examples of ArtifactURLConfiguration


Examples of org.rioproject.url.artifact.ArtifactURLConfiguration

            if(adaptedCodebase==null) {
                try {
                    logger.debug("Resolve {} ", codebase);
                    StringBuilder builder = new StringBuilder();
                    String path =  codebase.substring(codebase.indexOf(":")+1);
                    ArtifactURLConfiguration artifactURLConfiguration = new ArtifactURLConfiguration(path);
                    String[] cp = resolver.getClassPathFor(artifactURLConfiguration.getArtifact(),
                                                           artifactURLConfiguration.getRepositories());
                    for(String s : cp) {
                        if(builder.length()>0)
                            builder.append(" ");
                        builder.append(new File(s).toURI().toURL().toExternalForm());
                    }
View Full Code Here

Examples of org.rioproject.url.artifact.ArtifactURLConfiguration

        final List<EventDescriptor> eventDescriptors = new ArrayList<EventDescriptor>();
        if (classpath != null) {
            ClassAnnotator annotator = null;
            String[] classPath;
            if (Artifact.isArtifact(classpath)) {
                ArtifactURLConfiguration artifactURLConfiguration = new ArtifactURLConfiguration(classpath);
                StringBuilder artifactBuilder = new StringBuilder();
                artifactBuilder.append("artifact:").append(artifactURLConfiguration.getArtifact());
                annotator = new ClassAnnotator(new URL[]{new URL(artifactBuilder.toString())});
                String[] cp = ResolverHelper.getResolver().getClassPathFor(classpath);
                classPath = new String[cp.length];
                for (int i = 0; i < classPath.length; i++) {
                    String s = cp[i].startsWith("file:") ? cp[i] : "file:" + cp[i];
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.