SeamXML使得你可以使用XML来配置CDIBeans。例如
<s:EntityManager> <s:Produces/> <sPersistenceContextunitName="customerPu"/></s:EntityManager><s:String> <s:Produces/> <my:VersionQualifier/> <value>Version1.23</value></s:String>
等同于
classSomeClass{ @Produces @PersistenceContext(unitName="customerPu") EntityManagerfield1; @Produces @VersionQualifier Stringfield2="Version1.23"; }
评论