concept reference in category seam

This is an excerpt from Manning's book Seam in Action.
There are two versions of seam-gen, a command-line script and an IDE plugin. The command-line version, which is a wrapper around Ant, has the advantage that both it and the project it produces can be driven from the command line or from an IDE. The prominent IDE version of seam-gen is an Eclipse plug-in that’s part of the JBossTools suite. The JBossTools project hosts a variety of standalone Eclipse plug-ins that support Java EE development. These plug-ins get bundled with the JBoss Developer Studio (JBDS),[3] a set of Eclipse-based development tools preconfigured for the JBoss Enterprise Middleware Platform and Red Hat Enterprise Linux. This section primarily focuses on the command-line version of seam-gen, with a brief discussion of the Eclipse plug-in. I don’t go into much detail about the IDE version since user interfaces tend to fall out of date quickly. You can find references to tutorials for using the Eclipse plug-in on the book’s online companion resources.
In the previous chapter you learned how a class enters into “component-hood” by way of annotations and, in this chapter, as a result of XML-based declarations. But alone, these definitions are just a fancy way of instantiating a class and weaving services into it. Oftentimes, a component becomes useful only once its state is initialized, which entails assigning initial values to its properties. This initialization comes in the form of a simple property value, such as a connection string, or as a reference to another component, effectively wiring components together. The property value assignments occur prior to the instance being put to work as a context variable.
The philosophy behind POJO (Plain Old Java Object) development is that components don’t concern themselves with locating references to other components in the midst of a business method call. Instead, those references are provided during initialization of the component through a technique known as dependency injection, which Seam fully supports. You may choose to adopt this approach if you intend to use your components outside of Seam, perhaps in unit tests or because they’re part of a shared model. In addition, it can be a performance optimization since this type of configuration is performed up front rather than recurring during the lifetime of the component.
In dependency injection, a component first declares that it has one or more dependencies by exposing them as bean properties. The bean property provides the type, name, and means of accepting the reference. The dependency may be another component instance or a regular Java object. You then use some mechanism of declaring how the reference is going to be found. The reference is then resolved and injected into the bean property at runtime. Seam supports two styles of component wiring, one that is static and one that is dynamic. Both styles use reflection to assign values to either the fields or properties—setter methods—of a bean. The difference is when it happens. Depending on the style of injection, the value is injected either when the component instance is created or when a method on the component is executed. Let’s sort out the two cases.