Skip to main content

Introducing IoC

Posted by daniel on February 10, 2004 at 6:25 AM PST

Inversion of Control has attracted a lot of attention lately. It may be time for you to play with Spring, PicoContainer, or one of the other frameworks.

Sam Newman has written a java.net featured article which serves as A Brief Introduction to IoC . Sam introduces the topic through examples of interface, setter, and constructor injections using Spring and PicoContainer. As a concrete example of the benefits of IoC, Sam provides an example of how easy it is to change Data Access Objects from using JDBC to Hibernate. By not hardcoding in the resources you need, you introduce more robustness and flexibility into your design. This introduction has added IoC to my growing list of things to play with.


In
Also in Java Today
, many scripting languages can be used to work with your Java code, but some of the languages are designed with that purpose in mind. Object Computing's Mark Volkmann introduces you to Groovy - Scripting for Java giving you an overview of the Groovy syntax. He also notes that if you would like to work with a scripting language closer to the Java syntax, you should check out BeanShell instead.

In Parts, Pipelines, and Declarative programming: An architectural model , Satya Komatineni explains the "idea of a part pipeline [which] allows you to string together multiple tasks (or parts) so that the main task is a collection of subtasks. Depending on the sophistication of the pipeline implementation you can implement transactional properties to these pipelines. The base implementation in Aspire/J2EE allows for single data base transactional commits so that a very common case is covered. If you were to use the full blown JTA and write your own PipelinePart you may be able to accomplish the same transactional benefits of a traditional session bean."


In today's Weblogs Sue Spielman begins her conference coverage in ETech 2004 Kicks Off. She reports that "O'Reilly has gathered quite the diverse crowd at the Emerging Tech conference this week taking place in San Diego. Where else could you be exposed to a digital democracy teach-in and relativistic time dilation in the same place?"

John Mitchell notes that the XWork v1.0 and WebWork v2.0 frameworks have been released. This includes "version 1.0 of the XWork command processing framework and version 2.0 of the WebWork web application framework (which is built on top of XWork)."


In Projects and Communities The Jini community has put together a page on Getting started with Jini 2.0. This material is designed to help you understand and use the new security model.

The javadevices project is the development site for JavaDevices which includes online courses, news, articles, tutorials, and Embedded Java based projects.


In today's java.net News Headlines
:

Registered users can submit news items for the href="http://today.java.net/today/news/">java.net News Page using
our news submission
form
. All submissions go through an editorial review by news director
Steve Mallet before being posted to the site. You can also subscribe to
thejava.net
News RSS feed
.


Current and upcoming
Java Events
:

Registered users can submit event listings for the href="http://www.java.net/events">java.net Events Page using our href="http://today.java.net/cs/user/create/e"> events submission
form. All submissions go through an editorial review before being
posted to the site.


Archives and Subscriptions: This blog is delivered weekdays as the
Java
Today RSS feed
. All java.net members can subscribe to the email
updates for the site at the href="https://java-net.dev.java.net/servlets/ProjectMailingListList">
java-net Mailing Lists page. You must be logged in to subscribe
to
the javanet_Daily and javanet_Weekly lists. Also, once this page
is no longer featured as the front page of
java.net
it will be archived along with other past issues in the href="http://today.java.net/today/archive/">java.net Archive.