[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] |
Comments |
Comment by koichik [ 2008-04-02 ] |
依頼者の確認が取れたのでクローズ. |
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 ] |
対応しました. |