• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in Interceptor Filter?

 
Amandeep Singh
Ranch Hand
Posts: 850
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In http://www.corej2eepatterns.com/Patterns2ndEd/InterceptingFilter.htm here, under Consequences section it says-

Information sharing is inefficient

No idea what this means or how it is related to this context.
 
Matthew Brown
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I must admit, I didn't know what that was particularly getting at. But I just did a search of that site looking for other rereferences to see if they explained more what they meant. And found the equivalent page from the first edition (I think) - http://www.corej2eepatterns.com/Patterns/InterceptingFilter.htm - which goes into more detail:
Information Sharing is Inefficient
Sharing information between filters can be inefficient, since by definition each filter is loosely coupled. If large amounts of information must be shared between filters, then this approach may prove to be costly.

Which makes more sense.
 
Amandeep Singh
Ranch Hand
Posts: 850
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for reply. It do makes sense.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic