Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for getInstance (0.14 sec)

  1. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/ProtoSession.java

                        } catch (DIException e) {
                            return Optional.empty();
                        }
                    }
    
                    @Override
                    public <T> Optional<T> lookupOptional(Class<T> type, String name) {
                        try {
                            return Optional.of(injector.getInstance(Key.of(type, name)));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/internal/impl/SisuDiBridgeModule.java

                        }
                    }
                    //noinspection unchecked
                    return (Q) map(map, this::getInstance);
                };
            }
    
            private <Q> Q getInstance(Binding<Q> binding) {
                return compile(binding).get();
            }
    
            private static Comparator<Binding<?>> getBindingComparator() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  3. 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 Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/TransformedArtifact.java

            }
            sourceState.set(result);
            return result;
        }
    
        static String sha1(Path path) throws NoSuchAlgorithmException, IOException {
            MessageDigest md = MessageDigest.getInstance("SHA-1");
            try (InputStream fis = Files.newInputStream(path)) {
                byte[] buffer = new byte[SHA1_BUFFER_SIZE];
                int read;
                while ((read = fis.read(buffer)) != -1) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. compat/maven-model-builder/src/test/java/org/apache/maven/model/interpolation/AbstractModelInterpolatorTest.java

                config.setSystemProperties(p);
            }
            return config;
        }
    
        @Test
        public void testDefaultBuildTimestampFormatShouldFormatTimeIn24HourFormat() {
            Calendar cal = Calendar.getInstance();
            cal.setTimeZone(MavenBuildTimestamp.DEFAULT_BUILD_TIME_ZONE);
            cal.set(Calendar.HOUR, 12);
            cal.set(Calendar.AM_PM, Calendar.AM);
    
            // just to make sure all the bases are covered...
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  6. compat/maven-compat/src/test/java/org/apache/maven/artifact/AbstractArtifactComponentTestCase.java

            try (Writer writer = new OutputStreamWriter(new FileOutputStream(artifactFile), StandardCharsets.ISO_8859_1)) {
                writer.write(artifact.getId());
            }
    
            MessageDigest md = MessageDigest.getInstance("MD5");
            md.update(artifact.getId().getBytes());
            byte[] digest = md.digest();
    
            String md5path = repository.pathOf(artifact) + ".md5";
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.8K bytes
    - Viewed (0)
Back to top