ã¢ããã¼ã·ã§ã³å¯¾å¿
å®æ°ã¢ããã¼ã·ã§ã³ã®ããããBINDINGã¢ããã¼ã·ã§ã³ã ãã§ãã対å¿ãã¦ã¿ã¾ãããèªåãã¤ã³ãã£ã³ã°å¯¾è±¡ã®ã³ã³ãã¼ãã³ãããªãå ´åã®ã¨ã©ã¼ãè¦åã¯æ¬¡ã®ããã«ãã¦ãã¾ãã
- bindingType=must
- ã¨ã©ã¼
- bindingType=should
- è¦å
- bindingType=may
- ä½ãåºããªã
- bindingType=none
- ä½ãåºããªã
- èªåãã¤ã³ãã£ã³ã°å¯¾è±¡å¤
- ããããã£åãæå®ããã¦ããã¨ã
- ã¨ã©ã¼
- ä¸æ£ãªbindingType
- ã¨ã©ã¼
AutoRegisterã§åºã¦ããnullãã»ããããã¾ãã¨ããè¦åããããã§è¡¨ç¤ºãããªããªãã¯ãã§ãã
å®è£ æ¹æ³ã¯æ©ãã ã®ã§ãããIRttiPropertyDescriptor#getAdaptorã使ã£ã¦ã¢ããã¼ã·ã§ã³ãåå¾ã§ããããã«ãã¾ããããã¨ãã°
IRtti rtti = (IRtti) component.getAdaptor(IRtti.class); IRttiPropertyDescriptor propDesc = rtti.getProperty("hoge"); IBindingAnnotation ba = (IBindingAnnotation) propDesc.getAdaptor(IBindingAnnotation.class);
ã¨ããæãã§ããè¦ãã¨ããRTTIã¨diconã¢ãã«ã¯åé¢ããã¦ãããããªã®ã§ãdiconã¢ãã«ããRTTIãåå¾ãããã¨ããã¨ãã ãã¢ããã¼ã·ã§ã³ããµãã¼ãããRTTIã§ã©ããããã¨ããå½¢ã«ãã¾ããã