- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for findInstance (0.32 sec)
-
pilot/pkg/serviceregistry/util/workloadinstances/util.go
package workloadinstances import ( "strings" "k8s.io/apimachinery/pkg/types" "istio.io/istio/pilot/pkg/model" "istio.io/istio/pkg/slices" ) // FindInstance returns the first workload instance matching given predicate. func FindInstance(instances []*model.WorkloadInstance, predicate func(*model.WorkloadInstance) bool) *model.WorkloadInstance { for _, instance := range instances { if predicate(instance) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 24 17:36:41 UTC 2023 - 2.8K bytes - Viewed (0) -
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)