• Type: Improvement
    • Resolution: Fixed
    • Priority: Major
    • 2.4.25
    • Affects Version/s: 2.4.24
    • Component/s: S2Container
    • None

      BindingTypeDef をカスタマイズしやすくする.[Seasar-user:13496]
      http://ml.seasar.org/archives/seasar-user/2008-April/013496.html

          [CONTAINER-183] BindingTypeDef をカスタマイズしやすくしました.[Seasar-user:13496]

          koichik added a comment -

          依頼者の確認が取れたのでクローズ.
          http://ml.seasar.org/archives/seasar-user/2008-April/013518.html

          koichik added a comment - 依頼者の確認が取れたのでクローズ. http://ml.seasar.org/archives/seasar-user/2008-April/013518.html

          koichik added a comment -
          public class MyBindingTypeShouldDef extends BindingTypeShouldDef {
            public BindingTypeShouldDef() {
              super(BindingTypeDef.SHOULD_NAME);
            }
          
            protected boolean isAutoBindable(PropertyDef pd, ComponentDef cd) {
              return true;
            }
          }
          

          なんてクラスを用意して (MUST,MAY も同様に),

          s2container.dicon に

          <compoent class="MyBindingTypeShouldDef">
            <initMethod>
              @org.seasar.framework.container.assembler.BindingTypeDefFactory@addBindingTypeDef(#self)
            </initMethod>
          </component>
          

          なんてすればよいかと (MUST,MAY も同様に).

          koichik added a comment - public class MyBindingTypeShouldDef extends BindingTypeShouldDef { public BindingTypeShouldDef() { super (BindingTypeDef.SHOULD_NAME); } protected boolean isAutoBindable(PropertyDef pd, ComponentDef cd) { return true ; } } なんてクラスを用意して (MUST,MAY も同様に), s2container.dicon に <compoent class= "MyBindingTypeShouldDef" > <initMethod> @org.seasar.framework.container.assembler.BindingTypeDefFactory@addBindingTypeDef(#self) </initMethod> </component> なんてすればよいかと (MUST,MAY も同様に).

          koichik added a comment -

          koichik added a comment - 対応しました. http://svn.seasar.org/browse/?view=rev&root=s2container&revision=3546

            Assignee:
            koichik
            Reporter:
            koichik
            Votes:
            0 Vote for this issue
            Watchers:
            Start watching this issue

              Created:
              Updated:
              Resolved: