[CONTAINER-183] BindingTypeDef をカスタマイズしやすくしました.[Seasar-user:13496] Created: 2008-04-01  Updated: 2008-04-02  Resolved: 2008-04-01

Status: Closed
Project: S2Container
Component/s: S2Container
Affects Version/s: 2.4.24
Fix Version/s: 2.4.25

Type: Improvement Priority: Major
Reporter: koichik Assignee: koichik
Resolution: Fixed Votes: 0
Labels: None


 Description   

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



 Comments   
Comment by koichik [ 2008-04-02 ]

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

Comment by koichik [ 2008-04-01 ]
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 も同様に).

Comment by koichik [ 2008-04-01 ]

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

Generated at Fri Apr 26 00:00:21 JST 2024 using Jira 9.15.0#9150000-sha1:9ead8528714127d8cfabf2446010d7e62c0a195c.