|
|
Choosing A Webhost: |
Re: svn commit: r492447: msg#00021apache.excalibur.devel
Vadim Gritsenko wrote: > I do not want to object but I would like to understand one thing... Given > this code: > > public class FooComponent extends AbstractLogEnabled > implements ..., ThreadSafe, Component > > public class BarComponent extends AbstractLogEnabled > implements ..., ThreadSafe > > You suggest that BarComponent is POJO, while FooComponent is not. Can you > explain me why is that? > :) No, I'm not suggesting this, but...we had two different cases: a) Component is used in an interface. This prevents the usage of the interface in a non Avalon world and should really be avoided. b) Component is used in the implementation (as you show above). Removing the interface from the implementation is the first step towards having a POJO. But it is not possible to remove all avalon lifecycle interfaces from the implementation without breaking the usage inside an avalon container. My primary goal is to use the interfaces in a POJO world; I don't care that much about the implementation. But at the same time I want to reduce the dependency to avalon even in the implementation as much as possible. Perhaps one could do a: public class POJOBarCompomnent implements ... and public class BarComponent extends POJOBarComponent implements ThreadSafe, LogEnabled I'm not sure if this is worth the effort. Does this all make sense somehow? Carsten -- Carsten Ziegeler http://www.osoco.org/weblogs/rael/
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: svn commit: r492447, Siegfried Goeschl |
|---|---|
| Next by Date: | Re: svn commit: r492447, Vadim Gritsenko |
| Previous by Thread: | Re: svn commit: r492447, Vadim Gritsenko |
| Next by Thread: | Re: svn commit: r492447, Vadim Gritsenko |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |