Package org.rioproject.loader

Examples of org.rioproject.loader.ClassAnnotator


        }
        commonCL.addCommonJARs(commonJARs);
        final Thread currentThread = Thread.currentThread();
        ClassLoader currentClassLoader = currentThread.getContextClassLoader();

        ClassAnnotator annotator = new ClassAnnotator(ClassLoaderUtil.getCodebaseURLs(getCodebase()));

        ServiceClassLoader serviceCL =
            new ServiceClassLoader(ServiceClassLoader.getURIs(ClassLoaderUtil.getClasspathURLs(getClasspath())),
                                   annotator,
                                   commonCL);
View Full Code Here


            throw new IllegalArgumentException("classNames must not be null");
        if(classNames.length==0)
            throw new IllegalArgumentException("classNames must not be empty");
        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];
                    classPath[i] = ResolverHelper.handleWindows(s);
View Full Code Here

            URL[] classpath = urlList.toArray(new URL[urlList.size()]);
            Properties metaData = new Properties();
            metaData.setProperty("opStringName", sElem.getOperationalStringName());
            metaData.setProperty("serviceName", sElem.getName());
            ServiceClassLoader jsbCL = new ServiceClassLoader(ServiceClassLoader.getURIs(classpath),
                                                              new ClassAnnotator(exports),
                                                              commonCL,
                                                              metaData);

            /*
            ServiceClassLoader jsbCL =
View Full Code Here

TOP

Related Classes of org.rioproject.loader.ClassAnnotator

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.