?? ReferenceScope
- ????????:
Serializable
,Comparable<ReferenceScope>
Reference scope for the
Reference
annotation.- ???????:
- 1.3
-
??????
??????????A single service object is used for all references to the service in this bundle.If the bound service has prototype service scope, then each instance of the component with this reference can receive a unique instance of the service.Bound services must have prototype service scope. -
????
??????????toString()
static ReferenceScope
?????????????????? ??????????????????? ????????(?????? ??????)static ReferenceScope[]
values()
???????????????, ??????????????
-
????????
-
BUNDLE
A single service object is used for all references to the service in this bundle. -
PROTOTYPE
If the bound service has prototype service scope, then each instance of the component with this reference can receive a unique instance of the service. If the bound service does not have prototype service scope, then this reference scope behaves the same asBUNDLE
. -
PROTOTYPE_REQUIRED
Bound services must have prototype service scope. Each instance of the component with this reference can receive a unique instance of the service.
-
-
??????
-
values
???????????????, ??????????????- ??:
- ???????????????????????????
-
valueOf
?????????????????? ??????????????????? ????????(?????? ??????)- ??:
name
- ????????????- ??:
- ?????????????
- ??:
IllegalArgumentException
- ??????????????????NullPointerException
- ???????
-
toString
- ??:
toString
???Enum<ReferenceScope>
-