Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cayenne.di
Interface Scope

All Known Implementing Classes:
  DefaultScope

    public interface Scope

Defines the scope of the instances created by the DI container. I.e. whether instances are shared between the callers, and for how longs or whether they are created anew. Scope object is also used to tie DI-produced instances to the Injector events, such as shutdown.

Cayenne defines a few standard scopes in `Scopes` class. The default scope of a binding in Cayenne is `Scopes#INSTANCE`.

Since:
  3.1

Method Summary
`
`<T> Provider<T>`
` | `scope(Provider<T> unscoped)`

Method Detail

### scope

    <T> Provider<T> scope(Provider<T> unscoped)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2010 Apache Cayenne. All Rights Reserved.