?? ConfigurationPolicy
- ????????:
Serializable
,Comparable<ConfigurationPolicy>
Configuration Policy for the
Component
annotation.
Controls whether component configurations must be satisfied depending on the presence of a corresponding Configuration object in the OSGi Configuration Admin service. A corresponding configuration is a Configuration object where the PID is the name of the component.
- ???????:
- 1.1
-
??????
??????????Always allow the component configuration to be satisfied and do not use the corresponding Configuration object even if it is present.Use the corresponding Configuration object if present but allow the component to be satisfied even if the corresponding Configuration object is not present.There must be a corresponding Configuration object for the component configuration to become satisfied. -
????
??????????toString()
static ConfigurationPolicy
?????????????????? ??????????????????? ????????(?????? ??????)static ConfigurationPolicy[]
values()
???????????????, ??????????????
-
????????
-
OPTIONAL
Use the corresponding Configuration object if present but allow the component to be satisfied even if the corresponding Configuration object is not present. -
REQUIRE
There must be a corresponding Configuration object for the component configuration to become satisfied. -
IGNORE
Always allow the component configuration to be satisfied and do not use the corresponding Configuration object even if it is present.
-
-
??????
-
values
???????????????, ??????????????- ??:
- ???????????????????????????
-
valueOf
?????????????????? ??????????????????? ????????(?????? ??????)- ??:
name
- ????????????- ??:
- ?????????????
- ??:
IllegalArgumentException
- ??????????????????NullPointerException
- ???????
-
toString
- ??:
toString
???Enum<ConfigurationPolicy>
-