The Artima Developer Community
Sponsored Link

Java Buzz Forum
Femtocontainer -- The IoC container built into the JDK

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
dion

Posts: 5028
Nickname: dion
Registered: Feb, 2003

Dion Almaer is the Editor-in-Chief for TheServerSide.com, and is an enterprise Java evangelist
Femtocontainer -- The IoC container built into the JDK Posted: Feb 17, 2005 2:25 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by dion.
Original Post: Femtocontainer -- The IoC container built into the JDK
Feed Title: techno.blog(Dion)
Feed URL: http://feeds.feedburner.com/dion
Feed Description: blogging about life the universe and everything tech
Latest Java Buzz Posts
Latest Java Buzz Posts by dion
Latest Posts From techno.blog(Dion)

Advertisement
Sam has wisely seen that Java has a version of IoC via the java.beans.XMLEncoder/XMLDecoder classes. Take a look at Sam's XML config: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE javabeans SYSTEM "http://www.javarants.com/schemas/javabeans.dtd"> <java version="1.4.2" class="java.beans.XMLDecoder"> <object id="cityFinder" class="com.sampullara.jbioc.CityScape"> <void property="cityMap"> <object class="java.util.HashMap"> <void method="put"> <string>LDN</string> <string>London</string> </void> <void method="put"> <string>FFT</string> <string>Frankfurt</string> </void> </object> </void> </object> <object id="region" class="com.sampullara.jbioc.RegionInfo"> <void property="cityFinder"><object idref="cityFinder"/></void> <void property="regions"> <object class="java.util.ArrayList"> <void method="add"><string>Europe</string></void> <void method="add"><string>America</string></void> </object> </void> </object> </java> Now, you may not be a big fan of the Spring XML config, but this is even closer to the bone. It really does shout out "WHY ARE WE USING XML FOR THIS AND NOT JUST CODE!" (especially a dynamic language). Also, although it does allow some dependency injection, it is basic. It doesn't support the layers of components/services like HiveMind. And IoC itself is only part of the picture. The real power of Spring is that it has practical stuff that you can use out of the box! Great find though Sam!

Read: Femtocontainer -- The IoC container built into the JDK

Topic: The Why of Orca TDD Build Framework Previous Topic   Next Topic Topic: [DJUG] JUG Central and BPEL

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use