Spring Framework Overview
目標
- Java エンタープライズ開発 の簡素化 (Simplify Java Enterprise Development)
アーキテクチャ (Architecture)
Core Container
graph subgraph BeanFactory B(Bean) Cr(Core) end Ct(Context) SpEL(SpEL)
- Bean と Core: IoC と DI の基本
機能
を提供
。
- BeanFactory は Bean の作成 と管理 に使用 。
- Context:
ApplicationContextインターフェース、Bean のライフサイクルと依存 関係 を管理 。
Infrastructure
graph BT A(AOP) As(Aspects) Itt(Instrumentation) M(Messaging)
- AOP (アスペクト指向 プログラミング): 宣言的 な方法 でオブジェクトに機能 を追加 (ログ、セキュリティ、トランザクションなど)。
- Instrumentation: JMX を使用 してアプリケーションを遠隔 監視 。
Data Access Layer
graph BT jd(JDBC) orm(ORM) trans(Transaction) oxm(OXM) jms(JMS)
- JDBC Helper: JDBC の繰 り返 しコードを大幅 に削減 。
- ORM (Object Relational Mapping): Hibernate と JPA の統合 。
- JMS (Java Message Service): メッセージングサービスを提供 。
Web Layer
graph BT subgraph Home of Spring MVC Serv(Servlet) WS(WebSocket) Web(Web) Port(Portlet) end
Test Layer
graph BT U(Unit) combine(Integration) M(Mock)
- TDD (テスト駆動 開発 )、Mock オブジェクト、コンテナ外 の単体 テストをサポート。
Spring Container
- コア機能
:
- オブジェクトの作成 と管理 (IoC)。
- オブジェクト間 の依存 関係 の注入 (DI)。