Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for lookupList (0.08 sec)

  1. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultLookup.java

                    return Optional.empty();
                }
                throw new LookupException(e);
            }
        }
    
        @Override
        public <T> List<T> lookupList(Class<T> type) {
            try {
                return container.lookupList(type);
            } catch (ComponentLookupException e) {
                throw new LookupException(e);
            }
        }
    
        @Override
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. impl/maven-core/src/test/java/org/apache/maven/di/DiTest.java

                        },
                        new SisuDiBridgeModule(false));
            }
    
            @Test
            void testPlexus() throws Exception {
                List<ModelParser> parsers = container.lookupList(ModelParser.class);
                assertNotNull(parsers);
                assertEquals(1, parsers.size());
                Map<String, ModelParser> parsersMap = container.lookupMap(ModelParser.class);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Feb 10 23:18:32 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  3. impl/maven-core/src/test/java/org/apache/maven/SimpleLookup.java

            return Optional.empty();
        }
    
        @Override
        public <T> Optional<T> lookupOptional(Class<T> type, String name) {
            return Optional.empty();
        }
    
        @Override
        public <T> List<T> lookupList(Class<T> type) {
            return List.of();
        }
    
        @Override
        public <T> Map<String, T> lookupMap(Class<T> type) {
            return Map.of();
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. compat/maven-compat/src/test/java/org/apache/maven/SimpleLookup.java

            return Optional.empty();
        }
    
        @Override
        public <T> Optional<T> lookupOptional(Class<T> type, String name) {
            return Optional.empty();
        }
    
        @Override
        public <T> List<T> lookupList(Class<T> type) {
            return List.of();
        }
    
        @Override
        public <T> Map<String, T> lookupMap(Class<T> type) {
            return Map.of();
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/ProtoLookup.java

        }
    
        @Override
        public <T> Optional<T> lookupOptional(Class<T> type, String name) {
            return lookupOptional(type);
        }
    
        @Override
        public <T> List<T> lookupList(Class<T> type) {
            return List.of();
        }
    
        @Override
        public <T> Map<String, T> lookupMap(Class<T> type) {
            return Map.of();
        }
    
        public static Builder builder() {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/services/Lookup.java

         * @param <T> The component type.
         * @throws LookupException if there is some provisioning related issue.
         */
        @Nonnull
        <T> List<T> lookupList(Class<T> type);
    
        /**
         * Performs a collection lookup for given typed components.
         *
         * @param type The component type.
         * @return The map of components. The map may be empty if no components found.
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jan 10 12:55:54 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultTypeRegistry.java

        }
    
        @Override
        @Nonnull
        public Type require(String id) {
            requireNonNull(id, "id cannot be null");
            return usedTypes.computeIfAbsent(id, i -> {
                Type type = lookup.lookupList(TypeProvider.class).stream()
                        .flatMap(p -> p.provides().stream())
                        .filter(t -> Objects.equals(id, t.id()))
                        .findFirst()
                        .orElse(null);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed May 14 04:47:58 UTC 2025
    - 4K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/execution/MavenSession.java

            return container.lookup(role, roleHint);
        }
    
        @Deprecated
        public List<Object> lookupList(String role) throws ComponentLookupException {
            return container.lookupList(role);
        }
    
        @Deprecated
        public Map<String, Object> lookupMap(String role) throws ComponentLookupException {
            return container.lookupMap(role);
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jan 24 17:29:44 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  9. impl/maven-core/src/test/java/org/apache/maven/internal/impl/TestApi.java

        }
    
        @Test
        void testMetadataGeneratorFactory() throws ComponentLookupException {
            List<MetadataGeneratorFactory> factories = plexusContainer.lookupList(MetadataGeneratorFactory.class);
            assertNotNull(factories);
            factories.forEach(f -> System.out.println(f.getClass().getName()));
            assertEquals(3, factories.size());
        }
    
        @Test
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/DefaultMaven.java

        }
    
        private <T> Collection<T> getExtensionComponents(Collection<MavenProject> projects, Class<T> role) {
            Collection<T> foundComponents = new LinkedHashSet<>();
            foundComponents.addAll(lookup.lookupList(role));
            foundComponents.addAll(getProjectScopedExtensionComponents(projects, role));
            return foundComponents;
        }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon May 05 16:58:52 UTC 2025
    - 28.7K bytes
    - Viewed (1)
Back to top