Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 351 - 360 of 681 for setting (0.03 seconds)

  1. docs_src/settings/app02_an_py39/main.py

    from fastapi import Depends, FastAPI
    
    from .config import Settings
    
    app = FastAPI()
    
    
    @lru_cache
    def get_settings():
        return Settings()
    
    
    @app.get("/info")
    async def info(settings: Annotated[Settings, Depends(get_settings)]):
        return {
            "app_name": settings.app_name,
            "admin_email": settings.admin_email,
            "items_per_user": settings.items_per_user,
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Oct 24 20:26:06 GMT 2023
    - 445 bytes
    - Click Count (0)
  2. impl/maven-core/src/test/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulatorTest.java

            Profile p = new Profile();
            p.setId("test");
            p.addPluginRepository(r);
    
            Settings settings = new Settings();
            settings.addProfile(p);
            settings.addActiveProfile(p.getId());
    
            testee.populateFromSettings(request, settings);
    
            List<ArtifactRepository> repositories = request.getPluginArtifactRepositories();
            assertEquals(1, repositories.size());
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 2.1K bytes
    - Click Count (0)
  3. compat/maven-settings-builder/src/main/java/org/apache/maven/settings/building/FileSettingsSource.java

     */
    package org.apache.maven.settings.building;
    
    import java.io.File;
    
    import org.apache.maven.building.FileSource;
    
    /**
     * Wraps an ordinary {@link File} as a settings source.
     *
     *
     * @deprecated instead use {@link FileSource}
     */
    @Deprecated
    public class FileSettingsSource extends FileSource implements SettingsSource {
    
        /**
         * Creates a new settings source backed by the specified file.
         *
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 1.6K bytes
    - Click Count (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/settings/DefaultMavenSettingsBuilder.java

        }
    
        @Override
        public Settings buildSettings() throws IOException, XmlPullParserException {
            File userSettingsFile = getFile(
                    "${user.home}/.m2/settings.xml", "user.home", MavenSettingsBuilder.ALT_USER_SETTINGS_XML_LOCATION);
    
            return buildSettings(userSettingsFile);
        }
    
        @Override
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  5. docs_src/settings/app01_py39/main.py

    from fastapi import FastAPI
    
    from .config import settings
    
    app = FastAPI()
    
    
    @app.get("/info")
    async def info():
        return {
            "app_name": settings.app_name,
            "admin_email": settings.admin_email,
            "items_per_user": settings.items_per_user,
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 267 bytes
    - Click Count (0)
  6. compat/maven-settings-builder/src/main/java/org/apache/maven/settings/validation/DefaultSettingsValidator.java

                SettingsProblemCollector problems,
                String fieldName,
                Severity severity,
                String string,
                String sourceHint,
                String banned) {
            if (string != null) {
                for (int i = string.length() - 1; i >= 0; i--) {
                    if (banned.indexOf(string.charAt(i)) >= 0) {
                        addViolation(
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jul 23 17:27:08 GMT 2025
    - 10.6K bytes
    - Click Count (0)
  7. docs_src/settings/tutorial001_py39.py

    from pydantic_settings import BaseSettings
    
    
    class Settings(BaseSettings):
        app_name: str = "Awesome API"
        admin_email: str
        items_per_user: int = 50
    
    
    settings = Settings()
    app = FastAPI()
    
    
    @app.get("/info")
    async def info():
        return {
            "app_name": settings.app_name,
            "admin_email": settings.admin_email,
            "items_per_user": settings.items_per_user,
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 419 bytes
    - Click Count (0)
  8. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CommonsCliOptions.java

            public static final String USER_PROPERTY = "D";
            public static final String SHOW_VERSION_AND_EXIT = "v";
            public static final String SHOW_VERSION = "V";
            public static final String QUIET = "q";
            public static final String VERBOSE = "X";
    
            public static final String SHOW_ERRORS = "e";
    
            public static final String FAIL_ON_SEVERITY = "fos";
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Oct 08 07:36:42 GMT 2025
    - 21.3K bytes
    - Click Count (0)
  9. compat/maven-settings-builder/src/main/java/org/apache/maven/settings/crypto/SettingsDecrypter.java

     * under the License.
     */
    package org.apache.maven.settings.crypto;
    
    /**
     * Decrypts passwords in the settings.
     *
     * @deprecated since 4.0.0
     */
    @Deprecated(since = "4.0.0")
    public interface SettingsDecrypter {
    
        /**
         * Decrypts passwords in the settings.
         *
         * @param request The settings decryption request that holds the parameters, must not be {@code null}.
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 1.3K bytes
    - Click Count (0)
  10. api/maven-api-settings/src/site/apt/index.apt

     2006-11-04
     -----
    
    Maven 4 API - Immutable Settings Model
    
     This is strictly the immutable model for Maven settings in <<<org.apache.maven.api.settings>>> package.
    
     The following are generated from this model:
    
       * {{{./apidocs/index.html}Java sources}} with <<<Builder>>> inner classes for immutable instances creation.
    
     See also corresponding {{{../../compat/maven-settings/index.html}Maven classical settings model documentation}}.
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sun Nov 16 18:16:44 GMT 2025
    - 1.3K bytes
    - Click Count (0)
Back to Top