Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for getClassRealm (0.09 sec)

  1. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/PlexusContainerCapsuleFactory.java

                container.discoverComponents(
                        extension.getClassRealm(),
                        new AbstractModule() {
                            @Override
                            protected void configure() {
                                try {
                                    container.lookup(Injector.class).discover(extension.getClassRealm());
                                } catch (Throwable e) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/plugin/internal/DefaultPluginManager.java

            }
    
            ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader();
            try {
                Thread.currentThread().setContextClassLoader(pluginDescriptor.getClassRealm());
    
                return container.lookup(role, roleHint);
            } finally {
                Thread.currentThread().setContextClassLoader(oldClassLoader);
            }
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/extension/internal/CoreExports.java

     */
    public class CoreExports {
        private final Set<String> artifacts;
    
        private final Map<String, ClassLoader> packages;
    
        public CoreExports(CoreExtensionEntry entry) {
            this(entry.getClassRealm(), entry.getExportedArtifacts(), entry.getExportedPackages());
        }
    
        public CoreExports(ClassRealm realm, Set<String> exportedArtifacts, Set<String> exportedPackages) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/extension/internal/CoreExtensionEntry.java

            this.key = key;
            this.configuration = configuration;
        }
    
        /**
         * Returns ClassLoader used to load extension classes.
         */
        public ClassRealm getClassRealm() {
            return realm;
        }
    
        /**
         * Returns artifacts exported by the extension, identified by groupId:artifactId string key.
         */
        public Set<String> getExportedArtifacts() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProject.java

            this.session = session;
            this.project = project;
            ClassLoader ttcl = Thread.currentThread().getContextClassLoader();
            try {
                Thread.currentThread().setContextClassLoader(project.getClassRealm());
                this.packaging = session.requirePackaging(project.getPackaging());
            } finally {
                Thread.currentThread().setContextClassLoader(ttcl);
            }
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptor.java

                }
            }
            return null;
        }
    
        public void setClassRealm(ClassRealm classRealm) {
            this.classRealm = classRealm;
        }
    
        public ClassRealm getClassRealm() {
            return classRealm;
        }
    
        public void setIntroducedDependencyArtifacts(Set<Artifact> introducedDependencyArtifacts) {
            this.introducedDependencyArtifacts = introducedDependencyArtifacts;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  7. compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

                container.discoverComponents(
                        extension.getClassRealm(),
                        new AbstractModule() {
                            @Override
                            protected void configure() {
                                try {
                                    container.lookup(Injector.class).discover(extension.getClassRealm());
                                } catch (Throwable e) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 76.8K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/DefaultMaven.java

            ClassLoader originalContextClassLoader = currentThread.getContextClassLoader();
            try {
                for (MavenProject project : projects) {
                    ClassLoader projectRealm = project.getClassRealm();
    
                    if (projectRealm != null && scannedRealms.add(projectRealm)) {
                        currentThread.setContextClassLoader(projectRealm);
                        foundComponents.addAll(lookup.lookupList(role));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 27.5K bytes
    - Viewed (1)
Back to top