Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for setService (0.07 sec)

  1. api/maven-api-core/src/main/java/org/apache/maven/api/Session.java

         * <p>
         * Shortcut for {@code getService(TypeRegistry.class).require(...)}.
         *
         * @see org.apache.maven.api.services.TypeRegistry#require(String)
         */
        @Nonnull
        Type requireType(@Nonnull String id);
    
        /**
         * Obtain the {@link Language} from the specified {@code id}.
         * <p>
         * Shortcut for {@code getService(LanguageRegistry.class).require(...)}.
         *
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 16:43:07 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  2. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/ProtoSession.java

                Profile profile = session.getService(SettingsBuilder.class)
                        .convert(org.apache.maven.api.settings.Profile.newBuilder()
                                .repositories(settings.getRepositories())
                                .pluginRepositories(settings.getPluginRepositories())
                                .build());
                RepositoryFactory repositoryFactory = session.getService(RepositoryFactory.class);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  3. compat/maven-settings-builder/src/main/java/org/apache/maven/settings/building/DefaultSettingsBuilder.java

                                                        e -> e.getKey().toString(),
                                                        e -> e.getValue().toString()));
                                    } else if ("getService".equals(method.getName())) {
                                        if (args[0] == SettingsXmlFactory.class) {
                                            return settingsXmlFactory;
                                        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  4. compat/maven-toolchain-builder/src/main/java/org/apache/maven/toolchain/building/DefaultToolchainsBuilder.java

                                    } else if ("getUserProperties".equals(method.getName())) {
                                        return Map.of();
                                    } else if ("getService".equals(method.getName())) {
                                        if (args[0] == ToolchainsXmlFactory.class) {
                                            return toolchainsXmlFactory;
                                        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. compat/maven-embedder/src/main/java/org/apache/maven/cli/internal/BootstrapCoreExtensionManager.java

                return new SimpleSession(mavenSession, getRepositorySystem(), repositories);
            }
    
            @Override
            public <T extends Service> T getService(Class<T> clazz) throws NoSuchElementException {
                if (clazz == ArtifactCoordinatesFactory.class) {
                    return (T) new DefaultArtifactCoordinatesFactory();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.2K bytes
    - Viewed (0)
Back to top