Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 847 for initializer (0.21 seconds)

  1. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/PlatformInitializer.kt

     * limitations under the License.
     */
    package okhttp3.internal.platform
    
    import android.content.Context
    import androidx.startup.Initializer
    
    /**
     * Androidx Startup initializer to ensure that the AndroidPlatform has access to the application context.
     */
    class PlatformInitializer : Initializer<Platform> {
      override fun create(context: Context): Platform {
        PlatformRegistry.applicationContext = context
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Dec 31 14:50:53 GMT 2024
    - 1K bytes
    - Click Count (1)
  2. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/info/BuildParams.java

         * {@link MutableBuildParams#reset()} may be used.
         *
         * @param initializer Build parameter initializer
         */
        public static void init(Consumer<MutableBuildParams> initializer) {
            initializer.accept(MutableBuildParams.INSTANCE);
        }
    
        public static File getRuntimeJavaHome() {
            return value(runtimeJavaHome);
        }
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 22 07:24:59 GMT 2021
    - 7.7K bytes
    - Click Count (0)
  3. okhttp/src/androidMain/kotlin/okhttp3/OkHttp.android.kt

      /**
       * Configure the ApplicationContext. Not needed unless the AndroidX Startup [Initializer] is disabled, or running
       * a robolectric test.
       *
       * The functionality that will fail without a valid Context is primarily Cookies and URL Domain handling, but
       * may expand in the future.
       */
      fun initialize(applicationContext: Context) {
        if (PlatformRegistry.applicationContext == null) {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Jul 28 07:33:49 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  4. dbflute_fess/dfprop/littleAdjustmentMap.dfprop

        # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        # o extendedDBFluteInitializerClass: (NotRequired - Default null)
        #  If you want to extend the embedded DBFlute initializer,
        #  specify the class name of your original initializer
        #  that extends the embedded one.
        #  *Basically for fixed DBFluteConfig settings
        #
        #; extendedDBFluteInitializerClass = com.example.ExtendedDBFluteInitializer
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Jul 25 06:04:16 GMT 2015
    - 8.8K bytes
    - Click Count (0)
  5. okhttp/src/androidMain/kotlin/okhttp3/internal/publicsuffix/AssetPublicSuffixList.kt

              "Platform applicationContext not initialized. " +
                "Possibly running Android unit test without Robolectric. " +
                "Android tests should run with Robolectric " +
                "and call OkHttp.initialize before test",
            )
          } else {
            throw IOException(
              "Platform applicationContext not initialized. " +
                "Startup Initializer possibly disabled, " +
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Jul 28 07:33:49 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  6. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/GenerateIdnaMappingTableCode.kt

      return FileSpec
        .builder(packageName, "IdnaMappingTableInstance")
        .addProperty(
          PropertySpec
            .builder("IDNA_MAPPING_TABLE", idnaMappingTable)
            .addModifiers(KModifier.INTERNAL)
            .initializer(
              """
              |%T(⇥
              |sections = "%L",
              |ranges = "%L",
              |mappings = "%L",
              |⇤)
              """.trimMargin(),
              idnaMappingTable,
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 2.8K bytes
    - Click Count (1)
  7. android-test/src/test/kotlin/okhttp/android/test/DisabledInitialiserTest.kt

          hasMessage("Unable to load PublicSuffixDatabase.list resource.")
          cause().isNotNull().all {
            hasMessage(
              "Platform applicationContext not initialized. " +
                "Startup Initializer possibly disabled, " +
                "call OkHttp.initialize before test.",
            )
            hasClass<IOException>()
          }
        }
      }
    
      companion object {
        @AfterClass
        @JvmStatic
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Aug 30 16:25:39 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/reflect/Invokable.java

          } else {
            // Strictly, this doesn't necessarily indicate a hidden 'this' in the case of
            // static initializer. But there seems no way to tell in that case. :(
            // This may cause issues when an anonymous class is created inside a static initializer,
            // and the class's constructor's first parameter happens to be the enclosing class.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 18.5K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureFallbackAtomicHelperTest.java

     *
     * <p>On different platforms AbstractFuture uses different strategies for its core synchronization
     * primitives. The strategies are all implemented as subtypes of AtomicHelper and the strategy is
     * selected in the static initializer of AbstractFuture. This is convenient and performant but
     * introduces some testing difficulties. This test exercises the fallback strategies.
     *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 8.3K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/AggregateFutureStateFallbackAtomicHelperTest.java

     *
     * <p>On different platforms AggregateFutureState uses different strategies for its core
     * synchronization primitives. The strategies are all implemented as subtypes of AtomicHelper and
     * the strategy is selected in the static initializer of AggregateFutureState. This is convenient
     * and performant but introduces some testing difficulties. This test exercises the two fallback
     * strategies.
     *
     * <ul>
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 6.7K bytes
    - Click Count (0)
Back to Top