- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for bindScope (0.12 sec)
-
maven-core/src/main/java/org/apache/maven/session/scope/internal/SessionScopeModule.java
} public SessionScopeModule(SessionScope scope) { this.scope = scope; } @Override protected void configure() { bindScope(SessionScoped.class, scope); // bindScope(org.apache.maven.api.di.SessionScoped.class, scope); bind(SessionScope.class).toInstance(scope); bind(MavenSession.class)
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Mon Mar 25 10:50:01 UTC 2024 - 2.1K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/execution/scope/internal/MojoExecutionScopeModule.java
public MojoExecutionScopeModule(MojoExecutionScope scope) { this.scope = scope; } @Override protected void configure() { bindScope(MojoExecutionScoped.class, scope); // bindScope(org.apache.maven.api.di.MojoExecutionScoped.class, scope); bind(MojoExecutionScope.class).toInstance(scope); bind(MavenProject.class)
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Mon Feb 05 09:45:47 UTC 2024 - 2.2K bytes - Viewed (0) -
maven-di/src/main/java/org/apache/maven/di/Injector.java
// Builder API // static Injector create() { return new InjectorImpl(); } Injector discover(ClassLoader classLoader); Injector bindScope(Class<? extends Annotation> scopeAnnotation, Scope scope); Injector bindScope(Class<? extends Annotation> scopeAnnotation, Supplier<Scope> scope); Injector bindImplicit(Class<?> cls); <T> Injector bindInstance(Class<T> cls, T instance);
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-di/src/main/java/org/apache/maven/di/impl/InjectorImpl.java
} return this; } public Injector bindScope(Class<? extends Annotation> scopeAnnotation, Scope scope) { return bindScope(scopeAnnotation, () -> scope); } public Injector bindScope(Class<? extends Annotation> scopeAnnotation, Supplier<Scope> scope) { if (scopes.put(scopeAnnotation, scope) != null) {
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-core/src/main/java/org/apache/maven/internal/impl/SisuDiBridgeModule.java
} }; injector.bindScope(SessionScoped.class, () -> { try { return containerProvider.get().lookup(SessionScope.class); } catch (ComponentLookupException e) { throw new RuntimeException(e); } }); injector.bindScope(MojoExecutionScoped.class, () -> { try {
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Tue Jun 11 07:23:04 UTC 2024 - 8.8K bytes - Viewed (0) -
pkg/ctrlz/topics/scopes.go
}) fw.RenderJSON(w, http.StatusOK, scopeInfos) } func getScope(w http.ResponseWriter, req *http.Request) { vars := mux.Vars(req) name := vars["scope"] if s := log.FindScope(name); s != nil { fw.RenderJSON(w, http.StatusOK, getScopeInfo(s)) return } fw.RenderError(w, http.StatusBadRequest, fmt.Errorf("unknown scope name: %s", name)) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 24 14:06:41 UTC 2023 - 4K bytes - Viewed (0) -
security/pkg/k8s/chiron/utils_test.go
signers, err := csrctrl.RunCSRController(testSigner, test.NewStop(t), []kube.Client{c}) if err != nil { t.Fatal(err) } return signers, c } func TestGenKeyCertK8sCA(t *testing.T) { log.FindScope("default").SetOutputLevel(log.DebugLevel) signers, client := runTestSigner(t) ca := filepath.Join(t.TempDir(), "root-cert.pem") os.WriteFile(ca, []byte(signers[0].Rootcert), 0o666)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 15 03:58:11 UTC 2024 - 13K bytes - Viewed (0) -
pkg/log/scope_test.go
if z1 != z2 { t.Error("Expecting the same scope objects, got different ones") } } func TestFind(t *testing.T) { if z := FindScope("TestFind"); z != nil { t.Error("Found scope, but expected it wouldn't exist") } _ = RegisterScope("TestFind", "") if z := FindScope("TestFind"); z == nil { t.Error("Did not find scope, expected to find it") } } func TestBadNames(t *testing.T) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jan 03 17:36:09 UTC 2024 - 11K bytes - Viewed (0) -
cni/pkg/log/uds_test.go
os.Stdout = w loggingOptions := istiolog.DefaultOptions() loggingOptions.JSONEncoding = true loggingOptions.WithTeeToUDS(udsSock, constants.UDSLogPath) assert.NoError(t, istiolog.Configure(loggingOptions)) istiolog.FindScope("default").SetOutputLevel(istiolog.DebugLevel) istiolog.Debug("debug log") istiolog.Info("info log") istiolog.Warn("warn log") istiolog.Error("error log") istiolog.WithLabels("key", 2).Infof("with labels")
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 16:26:28 UTC 2024 - 4.1K bytes - Viewed (0) -
pkg/log/scope.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jan 03 16:47:01 UTC 2024 - 10.7K bytes - Viewed (0)