另一个DI的框架:Seasar2

最近在工作中碰到一个需求,要用到seasar2,上网查了一下。
是跟spring类似的依赖注入工具,同时带有AOP的处理能力。
同样使用xml格式的配置文件,后缀为dicon 。
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE components PUBLIC
    "-//SEASAR//DTD S2Container 2.3//EN"
    "http://www.seasar.org/dtd/components23.dtd">
<components>
    <component name="greeting"
        class="examples.di.impl.GreetingImpl"/>
    <component name="greetingClient"
        class="examples.di.impl.GreetingClientImpl">
        <property name="greeting">greeting</property>
    </component>
</components>



网站:http://s2struts.seasar.org/en/

跟java相关的项目:

S2Container  Light weight container supporting DI (dependency injection) and AOP (aspect oriented programming) 支持依赖注入和AOP的轻量级容器。

持久层
S2Dao  O/R mapping framework without using XML to map definitions.不使用映射定义的o/r映射框架
S2Hibernate.Java Library to use Hibernate with S2Container. 结合hibernate和S2Container。
S2Kuina JPA (Java Persistence API) framework. 使用jpa的框架。

工具
Kijimuna  Eclipse plug-in to assist edit/validate dicon file (S2Container configuration file).  帮助编写dicon(配置)文件的eclipse插件
S2JSF Plugin Eclipse plug-in to assist edit/validate S2JSF presentation template.帮助编写jsf的eclipse插件

还有很多支持WEB表现层的项目。
因为有日文文档,估计做日本外包软件的朋友们会喜欢吧。呵呵。
S2Struts里好像可以支持自动的structs的引入。

你可能感兴趣的:(eclipse,AOP,Hibernate,框架,jpa)