# 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
  Description
  `DefaultScopeProvider(DefaultScope scope, Provider<T> delegate)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `afterScopeEnd()`
  `T`
  `get()`

  ### Methods inherited from class Object

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

- ## Constructor Details

  - ### DefaultScopeProvider

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

- ## Method Details

  - ### get

    public T get()
    Specified by:
      `get` in interface `Provider<T>`

  - ### afterScopeEnd

    @AfterScopeEnd public void afterScopeEnd() throws Exception
    Throws:
      `Exception`