Ruben: There might be many reasons, but this is not related to jetspeed. This would be more java programming and OO design.
If an object can be created but it's expensive to initialize "for exmaple" then it could have an init method to delay the initialization. Another way to deal with this, the Builder Pattern. In java, objects are destroyed by the garbage collector then there is no more refrence (variable) pointing to them in the current scope. So not necessary to have a destroy method if we have an init method. Again, we don't discuss OO here. On Tue May 05,2009 02:18 pm, Ruben de Gooijer wrote: > Hi all, > > Can someone explain to me why the Valve interface has an initialize method > but no destroy method? > > Thanks! > > Kind regards, > Ruben --------------------------------------------------------------------- To unsubscribe, e-mail: jetspeed-user-unsubscr...@portals.apache.org For additional commands, e-mail: jetspeed-user-h...@portals.apache.org