geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s..@geronimo.apache.org
Subject [Apache Geronimo Wiki] Updated: GBeansArticle1
Date Tue, 21 Dec 2004 04:23:48 GMT
   Date: 2004-12-20T20:23:48
   Editor: SrinathPerera <hemapani@opensource.lk>
   Wiki: Apache Geronimo Wiki
   Page: GBeansArticle1
   URL: http://wiki.apache.org/geronimo/GBeansArticle1

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -53,7 +53,7 @@
  1. Registry Service together with lookups separate the service information from the caller
by hiding them behind a name.
  1. IOC or the dependency injection allows the automatic injection of references as they
become available.
 
-	The Idea of IOC is to define all the relationships among the components in terms of the
framework level configurations and each component is injected to the other components that
refer the service when the first component is available. 
+The Idea of IOC is to define all the relationships among the components in terms of the framework
level configurations and each component is injected to the other components that refer the
service when the first component is available. 
 For an example let us consider the how a GBean G1 obtains a reference to a Configuration
Store. The G1 is configured specifying the patterns of the reference it is expected. 
 
 {{{
@@ -112,8 +112,8 @@
 
 There are two types of relationships 
 
-1. Single references 
-1. Reference Collections
+ 1. Single references 
+ 1. Reference Collections
 
 ===  Single references ===
 The references are injected to a GBean in one of the two ways; the getter/setter injection
and the constructor injection based on how the dependencies injected in to the java Class
that use to implements the GBean. With the getter and setter injection framework injects the
attributes/ references using the getter and setter methods where as in the constructor injection
s injects the parameters as constructor parameters. The second approach is more preferable
as with that the GBeans support so called good citizen pattern making sure that the GBean
is in usable state once it is started. Geronimo supports both methods but moving towards the
complete constructor injection. 

Mime
View raw message