XML地獄
せっかくRailsをやった後だからと、この辺から読んでるんだが、
http://www.thinkit.co.jp/free/article/0608/12/1/
何これ*1。
<beans> <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> <property name="dataSource"><ref local="dataSource"/></property> </bean> <bean id="userRegisterService" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"> <property name="target"> <bean class="UserRegisterService"> <property name="dataSource"><ref bean="dataSource"/></property> </bean> </property> <property name="transactionManager"><ref bean="transactionManager"/></property> <property name="transactionAttributes"> <props><prop key="*">PROPAGATION_REQUIRED</prop></props> </property> </bean> </beans>
何これ*2。
<faces-config> <navigation-rule> <from-view-id>/index.jsp</from-view-id> <navigation-case> <from-outcome>success</from-outcome> <to-view-id>/success.jsp</to-view-id> </navigation-case> <navigation-case> <from-outcome>failure</from-outcome> <to-view-id>/failure.jsp</to-view-id> </navigation-case> </navigation-rule> (中略) </faces-config>
何これ、っていうか知ってるけども。
気持ち悪っ。
だからJAVAは嫌いなんだっつーの、とやる気なくしつつ進むぜ。
しかしXMLプログラミングはきもいなぁ。