Search Options

Results per page
Sort
Preferred Languages
Advance

Results 551 - 560 of 1,047 for setting (0.14 sec)

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

        /**
         * Gets the problems that were encountered during the settings building. Note that only problems of severity
         * {@link BuilderProblem.Severity#WARNING} and below are reported here. Problems with a higher severity level cause
         * the settings builder to fail with a {@link ToolchainsBuilderException}.
         *
         * @return the problems that were encountered during the settings building, can be empty but never {@code null}
         */
        @Nonnull
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Wed Feb 28 23:54:53 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. docs_src/settings/app02_an/main.py

    from typing_extensions import Annotated
    
    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,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 24 20:26:06 UTC 2023
    - 456 bytes
    - Viewed (0)
  3. compat/maven-settings-builder/src/main/java/org/apache/maven/settings/io/DefaultSettingsReader.java

    import org.apache.maven.settings.v4.SettingsStaxReader;
    
    /**
     * Handles deserialization of settings from the default textual format.
     *
     * @deprecated since 4.0.0, use {@link SettingsStaxReader} instead
     */
    @Named
    @Singleton
    @Deprecated(since = "4.0.0")
    public class DefaultSettingsReader implements SettingsReader {
    
        @Override
        public Settings read(File input, Map<String, ?> options) throws IOException {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/Constants.java

         * Maven installation settings.
         *
         * @since 4.0.0
         */
        @Config(defaultValue = "${maven.installation.conf}/settings.xml")
        public static final String MAVEN_INSTALLATION_SETTINGS = "maven.installation.settings";
    
        /**
         * Maven user settings.
         *
         * @since 4.0.0
         */
        @Config(defaultValue = "${maven.user.conf}/settings.xml")
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:24:08 UTC 2024
    - 14K bytes
    - Viewed (0)
  5. compat/maven-settings/pom.xml

            <configuration>
              <parameter>
                <excludes>
                  <exclude>org.apache.maven.settings.io.xpp3.SettingsXpp3Reader#contentTransformer</exclude>
                  <exclude>org.apache.maven.settings.RuntimeInfo</exclude>
                  <exclude>org.apache.maven.settings.Settings#setModelEncoding(java.lang.String):METHOD_REMOVED</exclude>
                </excludes>
              </parameter>
            </configuration>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/opensearch/extension/analysis/CharTypeFilterFactory.java

        public CharTypeFilterFactory(final IndexSettings indexSettings, final Environment environment, final String name,
                final Settings settings) {
            super(indexSettings, name, settings);
    
            alphabetic = settings.getAsBoolean("alphabetic", true);
            digit = settings.getAsBoolean("digit", true);
            letter = settings.getAsBoolean("letter", true);
        }
    
        @Override
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  7. docs_src/settings/app03/main.py

    from . import config
    
    app = FastAPI()
    
    
    @lru_cache
    def get_settings():
        return config.Settings()
    
    
    @app.get("/info")
    async def info(settings: config.Settings = Depends(get_settings)):
        return {
            "app_name": settings.app_name,
            "admin_email": settings.admin_email,
            "items_per_user": settings.items_per_user,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 24 20:26:06 UTC 2023
    - 412 bytes
    - Viewed (0)
  8. docs_src/settings/tutorial001.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,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 419 bytes
    - Viewed (0)
  9. docs_src/settings/app03_an/main.py

    from . import config
    
    app = FastAPI()
    
    
    @lru_cache
    def get_settings():
        return config.Settings()
    
    
    @app.get("/info")
    async def info(settings: Annotated[config.Settings, Depends(get_settings)]):
        return {
            "app_name": settings.app_name,
            "admin_email": settings.admin_email,
            "items_per_user": settings.items_per_user,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 24 20:26:06 UTC 2023
    - 451 bytes
    - Viewed (0)
  10. docs_src/settings/app02/test_main.py

    from fastapi.testclient import TestClient
    
    from .config import Settings
    from .main import app, get_settings
    
    client = TestClient(app)
    
    
    def get_settings_override():
        return Settings(admin_email="******@****.***")
    
    
    app.dependency_overrides[get_settings] = get_settings_override
    
    
    def test_app():
        response = client.get("/info")
        data = response.json()
        assert data == {
            "app_name": "Awesome API",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Jul 29 09:26:07 UTC 2021
    - 515 bytes
    - Viewed (0)
Back to top