- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for findInstance (0.15 sec)
-
subprojects/core/src/main/java/org/gradle/api/internal/plugins/DefaultPluginManager.java
Object instance = findInstance(pluginClass, pluginContainer); if (instance == null) { instance = instantiatePlugin(pluginClass); } return Cast.uncheckedCast(instance); } private <T> T findInstance(Class<T> clazz, Iterable<?> instances) { for (Object instance : instances) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 08 13:46:07 UTC 2024 - 14.8K bytes - Viewed (0) -
maven-di/src/main/java/org/apache/maven/di/Injector.java
Injector bindScope(Class<? extends Annotation> scopeAnnotation, Supplier<Scope> scope); Injector bindImplicit(Class<?> cls); <T> Injector bindInstance(Class<T> cls, T instance); // // Bean access // <T> void injectInstance(T instance); <T> T getInstance(Class<T> key); <T> T getInstance(Key<T> key);
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Tue Jun 11 07:23:04 UTC 2024 - 1.5K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java
// Add known classes // TODO: get those from the existing plexus scopes ? injector.bindInstance(Session.class, sessionV4); injector.bindInstance(Project.class, project); injector.bindInstance(org.apache.maven.api.MojoExecution.class, execution); injector.bindInstance(org.apache.maven.api.plugin.Log.class, log); mojo = mojoInterface.cast(injector.getInstance(
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Tue Jun 11 07:23:04 UTC 2024 - 46.5K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/internal/impl/SisuDiBridgeModule.java
} catch (ComponentLookupException e) { throw new RuntimeException(e); } }); injector.bindInstance(Injector.class, injector); bind(Injector.class).toInstance(injector); ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); if (classLoader == null) {
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Tue Jun 11 07:23:04 UTC 2024 - 8.8K bytes - Viewed (0) -
maven-di/src/main/java/org/apache/maven/di/impl/InjectorImpl.java
throw new DIException( "Cannot rebind scope annotation class to a different implementation: " + scopeAnnotation); } return this; } public <U> Injector bindInstance(Class<U> clazz, U instance) { Key<?> key = Key.of(clazz, ReflectionUtils.qualifierOf(clazz)); Binding<U> binding = Binding.toInstance(instance); return doBind(key, binding); }
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Tue Jun 11 07:23:04 UTC 2024 - 14.3K bytes - Viewed (0) -
maven-api-impl/src/test/java/org/apache/maven/internal/impl/standalone/ApiRunner.java
public class ApiRunner { /** * Create a new session. */ public static Session createSession() { Injector injector = Injector.create(); injector.bindInstance(Injector.class, injector); injector.bindImplicit(ApiRunner.class); injector.bindImplicit(DefaultArtifactCoordinateFactory.class); injector.bindImplicit(DefaultArtifactDeployer.class);
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Tue Jun 11 07:23:04 UTC 2024 - 17.1K bytes - Viewed (0)