July 28, 2004

Components & Constructors & Mach II

A question that pops up from time to time is when to use init() and when to use configure() within the framework.

Listeners, filters, and plug-ins are normally called using the configure method. This method even is called once on startup and cached. These objects inherit traits of the listener, filter, or plugin within the framework, respectively.

The init method constructs the instance of the object. If your object extends another object, you can have a call to super.init() to initialize the base component. This is normally utilized within your object structure. (DAO, Gateway, Transfer Object, Façade, ect)

Posted by Elyse at July 28, 2004 9:31 PM | TrackBack
Comments
Post a comment









Remember personal info?