org.springframework.context.annotation.Scope |
When used as a type-level annotation in conjunction with the Component
annotation, indicates the name of a scope to use for instances of the annotated
type.
When used as a method-level annotation in conjunction with the
Bean
annotation, indicates the name of a scope to use for
the instance returned from the method.
In this context, scope means the lifecycle of an instance, such as
singleton
, prototype
, and so forth.
[Expand]
Inherited Methods | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
java.lang.annotation.Annotation
|