Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 2,032 for delegates (0.15 sec)

  1. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/delegates/ArtifactHandlerDelegate.kt

        internal
        abstract val delegate: ArtifactHandler
    
        override fun add(configurationName: String, artifactNotation: Any): PublishArtifact =
            delegate.add(configurationName, artifactNotation)
    
        override fun add(configurationName: String, artifactNotation: Any, configureClosure: Closure<Any>): PublishArtifact =
            delegate.add(configurationName, artifactNotation, configureClosure)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/schema/extract/ManagedProxyClassGeneratorTest.groovy

        }
    
        def "mixes in toString() implementation that delegates to delegate object when it has a displayName property"() {
            def state = Stub(ModelElementState)
            def delegate = new Object() {
                String getDisplayName() {
                    return "<delegate>"
                }
            }
    
            expect:
            def proxyClass = generate(SomeType, delegate.class)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 27.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/json/json.go

    package json
    
    import (
    	"encoding/json"
    	"fmt"
    	"io"
    
    	kjson "sigs.k8s.io/json"
    )
    
    // NewEncoder delegates to json.NewEncoder
    // It is only here so this package can be a drop-in for common encoding/json uses
    func NewEncoder(w io.Writer) *json.Encoder {
    	return json.NewEncoder(w)
    }
    
    // Marshal delegates to json.Marshal
    // It is only here so this package can be a drop-in for common encoding/json uses
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 20 16:49:23 UTC 2021
    - 3.4K bytes
    - Viewed (0)
  4. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingServerSocketFactory.kt

    /**
     * A [ServerSocketFactory] that delegates calls. Sockets can be configured after creation by
     * overriding [.configureServerSocket].
     */
    open class DelegatingServerSocketFactory(private val delegate: ServerSocketFactory) : ServerSocketFactory() {
      @Throws(IOException::class)
      override fun createServerSocket(): ServerSocket {
        val serverSocket = delegate.createServerSocket()
        return configureServerSocket(serverSocket)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/FallbackTestClientSocketFactory.kt

    /**
     * An SSLSocketFactory that delegates calls. Sockets created by the delegate are wrapped with ones
     * that will not accept the [TLS_FALLBACK_SCSV] cipher, thus bypassing server-side fallback
     * checks on platforms that support it. Unfortunately this wrapping will disable any
     * reflection-based calls to SSLSocket from Platform.
     */
    class FallbackTestClientSocketFactory(
      delegate: SSLSocketFactory,
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2K bytes
    - Viewed (0)
  6. platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/ConditionalTemplateOperationSpec.groovy

     * limitations under the License.
     */
    
    package org.gradle.buildinit.plugins.internal
    
    import spock.lang.Specification
    
    
    class ConditionalTemplateOperationSpec extends Specification {
    
        def "triggers delegates depending on condition"(){
            TemplateOperation operation1 = Mock(TemplateOperation)
            TemplateOperation operation2 = Mock(TemplateOperation)
    
            Mock(org.gradle.internal.Factory).create() >> true
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 13:47:19 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/endpoints/warning/warning.go

    package warning
    
    import (
    	restful "github.com/emicklei/go-restful/v3"
    
    	"k8s.io/apiserver/pkg/warning"
    )
    
    // AddWarningsHandler returns a handler that adds the provided warnings to all requests,
    // then delegates to the provided handler.
    func AddWarningsHandler(handler restful.RouteFunction, warnings []string) restful.RouteFunction {
    	if len(warnings) == 0 {
    		return handler
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 09 18:11:41 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  8. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/history/changes/FingerprintCompareStrategy.java

    import org.gradle.internal.fingerprint.FileCollectionFingerprint;
    
    /**
     * Strategy to compare two {@link FileCollectionFingerprint}s.
     *
     * The strategy first tries to do a trivial comparison and delegates the more complex cases to a separate implementation.
     */
    public interface FingerprintCompareStrategy {
        /**
         * Visits the changes to file contents since the given fingerprint, subject to the given filters.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  9. subprojects/core-api/src/test/groovy/org/gradle/internal/typeconversion/CharSequenceNotationConverterTest.groovy

        def "ignores notations that are not a CharSequence instance"() {
            when:
            converter.convert(12, result)
    
            then:
            0 * _._
        }
    
        def "delegates to target converter when notation is an instance of #type"() {
            when:
            converter.convert(value, result)
    
            then:
            1 * target.convert("12", result)
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 04 22:26:51 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  10. platforms/jvm/jvm-services/src/test/groovy/org/gradle/internal/jvm/inspection/ReportingJvmMetadataDetectorTest.groovy

        def "delegates and reports each call"() {
            given:
            def location = InstallationLocation.userDefined(new File("jdkHome"), "test")
            def metadata = Mock(JvmInstallationMetadata)
            def reporter = Mock(BiConsumer)
            def delegate = Mock(JvmMetadataDetector)
    
            def detector = new ReportingJvmMetadataDetector(delegate, reporter)
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 18:25:34 UTC 2024
    - 1.5K bytes
    - Viewed (0)
Back to top