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)
Subscribe and Share!
Did you enjoy this article? Your feedback is very important! I'd like to invite you to keep up to date with the latest posts from Anticlue. We offer several venues. If you have some questions, help can be found here.- Become a Facebook Fan
- Subscribe to Anticlue
- Follow me on Twitter
- Add to Technorati Favorites
- Digg this post



