Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| The Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## org.springframework.context.annotation
Annotation Type Scope

    @Target(value=TYPE)
    @Retention(value=RUNTIME)
    @Documented
    public @interface Scope

Indicates the name of a scope to use for instances of the annotated class.

In this context, scope means the lifecycle of an instance, such as '`singleton`', '`prototype`', and so forth.

Since:
  2.5
Author:
  Mark Fisher

Optional Element Summary
`String` | `value` Specifies the scope to use for instances of the annotated class.

### value

    public abstract String value

  Specifies the scope to use for instances of the annotated class.

  Returns:
    the desired scope
  Default:
    "singleton"

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| The Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

Copyright © 2002-2007 The Spring Framework.