LoginSignup
0
0

More than 1 year has passed since last update.

Beansの意味と発展歴史

Posted at

Beansとは?

  • Component(文書、モデル、テーブル、コード、ライブラリ)またはオブジェクトを意味うる。簡単に言えば、プログラミングをする際に持ち込んで再利用が可能な部品だと思えばいい

Beansの歴史

1. javabean

再利用可能なComponentで、ルールは複雑。
2. Servlet&JSP Bean
MVCからデータを渡すModelとして機能する。ルールは簡単。JSP containerに管理される。
※管理:Beanのライフサイクルを生成、消滅する行為
3. EJB(Enterprise JavaBeans)
企業環境で使用するため誕生したが、ルールが複雑。 EJB containerに管理される
4. Spring beans
ルールがシンプルで独立的。Spring containerに管理される。
現在、BeanはSpring containerが管理するオブジェクトを意味で通用されている。

Spring container はBeanストレージで、Beanを保存管理(生成・消滅の上、オブジェクトの関係まで管理してくれる)。→ IoCで重要な役割

Spring containerの種類

  1. Bean Factory
    Beanの生成、接続などの基本機能を定義したインタフェース
  2. Application Context
    Bean Factory を拡張して複数の機能を追加したインターフェース。Spring containerと同義語として使用されている
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0