- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for setContextClassLoader (0.13 sec)
-
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/PlexusContainerCapsuleFactory.java
containerRealm, collectExportedArtifacts(coreEntry, extensions), collectExportedPackages(coreEntry, extensions)); Thread.currentThread().setContextClassLoader(containerRealm); DefaultPlexusContainer container = new DefaultPlexusContainer(cc, getCustomModule(context, exports)); // NOTE: To avoid inconsistencies, we'll use the TCCL exclusively for lookups
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 13.6K bytes - Viewed (0) -
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); } } public Map<String, Object> getPluginComponents(Plugin plugin, String role)
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 10K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java
public Thread newThread(Runnable r) { Thread newThread = new Thread(GROUP, r, "resolver-" + THREAD_NUMBER.getAndIncrement()); newThread.setDaemon(true); newThread.setContextClassLoader(null); return newThread; } } private class ResolveTask implements Runnable { private final ClassLoader classLoader;
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 24.8K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProject.java
ClassLoader ttcl = Thread.currentThread().getContextClassLoader(); try { Thread.currentThread().setContextClassLoader(project.getClassRealm()); this.packaging = session.requirePackaging(project.getPackaging()); } finally { Thread.currentThread().setContextClassLoader(ttcl); } } public InternalMavenSession getSession() { return session; }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 7.5K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/PlexusContainerCapsule.java
return lookup; } @Override public void close() { try { plexusContainer.dispose(); } finally { Thread.currentThread().setContextClassLoader(previousClassLoader); } }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 1.9K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/DefaultMaven.java
Thread.currentThread().setContextClassLoader(listener.getClass().getClassLoader()); method.run(listener, session); } } finally { Thread.currentThread().setContextClassLoader(originalClassLoader); } }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 27.5K bytes - Viewed (1) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java
try (C context = createContext(invokerRequest)) { try { if (context.currentThreadContextClassLoader != null) { Thread.currentThread().setContextClassLoader(context.currentThreadContextClassLoader); } return doInvoke(context); } catch (ExitException e) { return e.exitCode; } catch (Exception e) {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 38K bytes - Viewed (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java
} final CoreExports exports = new CoreExports(containerRealm, exportedArtifacts, exportedPackages); Thread.currentThread().setContextClassLoader(containerRealm); DefaultPlexusContainer container = new DefaultPlexusContainer(cc, new AbstractModule() { @Override protected void configure() {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 76.8K bytes - Viewed (0)