org.apache.cayenne.di.spi

## Class DefaultScopeProvider<T>

- java.lang.Object
- - org.apache.cayenne.di.spi.DefaultScopeProvider<T>

- All Implemented Interfaces:
    Provider<T>

      public class DefaultScopeProvider<T>
      extends Object
      implements Provider<T>

  A provider that provides scoping for other providers.
  Since:
    3.1

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultScopeProvider(DefaultScope scope, Provider<T> delegate)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `afterScopeEnd()`
    `T` | `get()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DefaultScopeProvider

          public DefaultScopeProvider(DefaultScope scope,
                                      Provider<T> delegate)

  - ### Method Detail

    - #### get

          public T get()

      Specified by:
        `get` in interface `Provider<T>`

    - #### afterScopeEnd

          @AfterScopeEnd
          public void afterScopeEnd()
                                             throws Exception

      Throws:
        `Exception`

Copyright © 2001–2021 Apache Cayenne. All rights reserved.