Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 73 for injection (0.06 sec)

  1. docs/en/docs/tutorial/dependencies/index.md

    It is designed to be very simple to use, and to make it very easy for any developer to integrate other components with **FastAPI**.
    
    ## What is "Dependency Injection" { #what-is-dependency-injection }
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/security/get-current-user.md

    ## Code size { #code-size }
    
    This example might seem verbose. Keep in mind that we are mixing security, data models, utility functions and *path operations* in the same file.
    
    But here's the key point.
    
    The security and dependency injection stuff is written once.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 4K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/background-tasks.md

    * Any keyword arguments that should be passed to the task function (`message="some notification"`).
    
    ## Dependency Injection { #dependency-injection }
    
    Using `BackgroundTasks` also works with the dependency injection system, you can declare a parameter of type `BackgroundTasks` at multiple levels: in a *path operation function*, in a dependency (dependable), in a sub-dependency, etc.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  4. docs/en/docs/alternatives.md

    It achieves something somewhat similar to what can be done with Flask-apispec.
    
    It has an integrated dependency injection system, inspired by Angular 2. It requires pre-registering the "injectables" (like all the other dependency injection systems I know), so, it adds to the verbosity and code repetition.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  5. docs/en/docs/features.md

    ### Dependency Injection { #dependency-injection }
    
    FastAPI includes an extremely easy to use, but extremely powerful <abbr title='also known as "components", "resources", "services", "providers"'><strong>Dependency Injection</strong></abbr> system.
    
    * Even dependencies can have dependencies, creating a hierarchy or **"graph" of dependencies**.
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/exception/ContainerNotAvailableException.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.exception;
    
    /**
     * Exception thrown when a dependency injection container or component is not available.
     * This exception indicates that the required container or a specific component within it cannot be accessed.
     */
    public class ContainerNotAvailableException extends FessSystemException {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/dependencies/sub-dependencies.md

    async def needy_dependency(fresh_value: str = Depends(get_value, use_cache=False)):
        return {"fresh_value": fresh_value}
    ```
    
    ////
    
    ## Recap { #recap }
    
    Apart from all the fancy words used here, the **Dependency Injection** system is quite simple.
    
    Just functions that look the same as the *path operation functions*.
    
    But still, it is very powerful, and allows you to declare arbitrarily deeply nested dependency "graphs" (trees).
    
    /// tip
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/witness/WitnessClientTest.java

            }
    
            public WitnessNotification getLastNotification() {
                return lastNotification;
            }
        }
    
        /**
         * Test witness client that allows injection of mock RPC client
         */
        private static class TestWitnessClient extends WitnessClient {
    
            public TestWitnessClient(InetAddress witnessServer, CIFSContext context, WitnessRpcClient rpcClient) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/exec/ThumbnailGeneratorTest.java

            }
        }
    
        public void test_searchEngineClient_injection() {
            // Test SearchEngineClient field injection
            ThumbnailGenerator generator = new ThumbnailGenerator();
            assertNull(generator.searchEngineClient);
    
            // After proper initialization, it should be injected
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/dependencies/classes-as-dependencies.md

    # Classes as Dependencies { #classes-as-dependencies }
    
    Before diving deeper into the **Dependency Injection** system, let's upgrade the previous example.
    
    ## A `dict` from the previous example { #a-dict-from-the-previous-example }
    
    In the previous example, we were returning a `dict` from our dependency ("dependable"):
    
    {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[9] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 6.7K bytes
    - Viewed (0)
Back to top