2010-02-09から1日間の記事一覧

Velocity & Google guice(3)

先日のVelocityTemplateModule を利用 Injector injector = Guice.createInjector( new VelocityTemplateModule("sample.vm") ); ================ @Inject private Template temp; // インジェクトされたら、VelocityContext 実行する以下のようなラッパを…