- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for lookupOptional (1.16 sec)
-
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/ProtoLookup.java
return lookup(type); } @Override public <T> Optional<T> lookupOptional(Class<T> type) { return Optional.ofNullable(type.cast(components.get(type))); } @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();
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.8K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/SimpleLookup.java
} @Override public <T> T lookup(Class<T> type, String name) { return null; } @Override public <T> Optional<T> lookupOptional(Class<T> type) { 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) {Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2K bytes - Viewed (0) -
impl/maven-core/src/test/java/org/apache/maven/SimpleLookup.java
} @Override public <T> T lookup(Class<T> type, String name) { return null; } @Override public <T> Optional<T> lookupOptional(Class<T> type) { 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) {Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultLookup.java
try { return container.lookup(type, name); } catch (ComponentLookupException e) { throw new LookupException(e); } } @Override public <T> Optional<T> lookupOptional(Class<T> type) { try { return Optional.of(container.lookup(type)); } catch (ComponentLookupException e) { if (e.getCause() instanceof NoSuchElementException) {Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 3.1K bytes - Viewed (0) -
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> Optional<T> lookupOptional(Class<T> type); /** * Performs a lookup for optional typed component. * * @param type The component type. * @param name The component name.Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jan 10 12:55:54 UTC 2024 - 3.3K bytes - Viewed (0) -
api/maven-api-cli/src/main/java/org/apache/maven/api/cli/ParserRequest.java
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Sat Jun 07 06:22:47 UTC 2025 - 15.9K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultPackagingRegistry.java
// which are bound to a project's classloader, without any clear definition // of a "project scope" LifecycleMapping lifecycleMapping = lookup.lookupOptional(LifecycleMapping.class, id).orElse(null); if (lifecycleMapping == null) { return Optional.empty(); } Type type = typeRegistry.lookup(id).orElse(null); if (type == null) {
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jan 24 17:29:44 UTC 2025 - 7.8K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecyclePluginAnalyzer.java
* from current module and for example not extensions coming from other modules. */ private LifecycleMapping lookupLifecycleMapping(final String packaging) { return lookup.lookupOptional(LifecycleMapping.class, packaging).orElse(null); } private void parseLifecyclePhaseDefinitions(Map<Plugin, Plugin> plugins, String phase, LifecyclePhase goals) {Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Sat Apr 05 11:52:05 UTC 2025 - 9K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/MavenInvoker.java
current = context.cwd.resolve(context.options().alternatePomFile().get()); } ModelProcessor modelProcessor = lookup.lookupOptional(ModelProcessor.class).orElse(null); if (modelProcessor != null) { return modelProcessor.locateExistingPom(current); } else { return Files.isRegularFile(current) ? current : null;
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Thu Sep 11 17:20:46 UTC 2025 - 28.2K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/DefaultMaven.java
return result; } validateOptionalProfiles(session, request.getProfileActivation()); LifecycleStarter lifecycleStarter = lookup.lookupOptional(LifecycleStarter.class, request.getBuilderId()) .orElseGet(() -> lookup.lookup(LifecycleStarter.class)); lifecycleStarter.execute(session);Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Mon May 05 16:58:52 UTC 2025 - 28.7K bytes - Viewed (1)