Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 278 for setInstance (0.09 sec)

  1. src/main/java/jcifs/context/SingletonContext.java

         * specified through this <code>jcifs.properties</code> system property.
         *
         * @return a global context, initialized on first call
         */
        public static synchronized final SingletonContext getInstance() {
            if (INSTANCE == null) {
                try {
                    log.debug("Initializing singleton context");
                    init(null);
                } catch (final CIFSException e) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  2. compat/maven-artifact/src/main/java/org/apache/maven/artifact/repository/ArtifactRepositoryPolicy.java

                checkForUpdates = true;
            } else if (UPDATE_POLICY_DAILY.equals(updatePolicy)) {
                // Get local midnight boundary
                Calendar cal = Calendar.getInstance();
    
                cal.set(Calendar.HOUR_OF_DAY, 0);
                cal.set(Calendar.MINUTE, 0);
                cal.set(Calendar.SECOND, 0);
                cal.set(Calendar.MILLISECOND, 0);
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/crypto/CachedCipher.java

            Cipher cipher = encryptoQueue.poll();
            if (cipher == null) {
                final SecretKeySpec sksSpec = new SecretKeySpec(key.getBytes(), algorithm);
                try {
                    cipher = Cipher.getInstance(algorithm);
                    cipher.init(Cipher.ENCRYPT_MODE, sksSpec);
                } catch (final InvalidKeyException e) {
                    throw new InvalidKeyRuntimeException(e);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat Jul 05 00:11:05 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  4. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/AndroidPlatform.kt

      override fun isCleartextTrafficPermitted(hostname: String): Boolean =
        when {
          Build.VERSION.SDK_INT >= 24 -> NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted(hostname)
          Build.VERSION.SDK_INT >= 23 -> NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted
          else -> true
        }
    
      override fun buildCertificateChainCleaner(trustManager: X509TrustManager): CertificateChainCleaner =
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu May 29 16:52:38 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/util/SecureCredentialStorage.java

            try {
                // Generate random IV
                byte[] iv = new byte[GCM_IV_SIZE];
                secureRandom.nextBytes(iv);
    
                // Setup cipher
                Cipher cipher = Cipher.getInstance(ENCRYPTION_ALGORITHM);
                GCMParameterSpec gcmSpec = new GCMParameterSpec(GCM_TAG_SIZE, iv);
                cipher.init(Cipher.ENCRYPT_MODE, masterKey, gcmSpec);
    
                // Encrypt
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  6. okhttp/src/jvmMain/kotlin/okhttp3/internal/platform/ConscryptPlatform.kt

      override fun newSSLContext(): SSLContext =
        // supports TLSv1.3 by default (version api is >= 1.4.0)
        SSLContext.getInstance("TLS", provider)
    
      override fun platformTrustManager(): X509TrustManager {
        val trustManagers =
          TrustManagerFactory
            .getInstance(TrustManagerFactory.getDefaultAlgorithm())
            .apply {
              init(null as KeyStore?)
            }.trustManagers!!
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/http/NetworkExplorerTest.java

                        transportContextField.setAccessible(true);
                        transportContextField.set(this, SingletonContext.getInstance());
    
                        java.lang.reflect.Field credentialsSuppliedField = NetworkExplorer.class.getDeclaredField("credentialsSupplied");
                        credentialsSuppliedField.setAccessible(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/exec/SuggestCreator.java

        }
    
        /**
         * Initializes the necessary probes for monitoring system resources.
         */
        static void initializeProbes() {
            // Force probes to be loaded
            ProcessProbe.getInstance();
            OsProbe.getInstance();
            JvmInfo.jvmInfo();
        }
    
        /**
         * The main method for the SuggestCreator application.
         *
         * @param args The command-line arguments.
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 11K bytes
    - Viewed (0)
  9. generics.go

    	return c.g.apply(ctx).CreateInBatches(r, batchSize).Error
    }
    
    type chainG[T any] struct {
    	execG[T]
    }
    
    func (c chainG[T]) getInstance() *DB {
    	var r T
    	return c.g.apply(context.Background()).Model(r).getInstance()
    }
    
    func (c chainG[T]) with(v op) chainG[T] {
    	return chainG[T]{
    		execG: execG[T]{g: &g[T]{
    			db:  c.g.db,
    			ops: append(append([]op(nil), c.g.ops...), v),
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/exec/Crawler.java

         * to ensure they are available for system monitoring during crawling.
         */
        static void initializeProbes() {
            // Force probes to be loaded
            ProcessProbe.getInstance();
            OsProbe.getInstance();
            JvmInfo.jvmInfo();
        }
    
        /**
         * Main entry point for the crawler application.
         * Parses command-line arguments, initializes the application container,
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 31K bytes
    - Viewed (0)
Back to top