File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CallBack Methods and Inline Methods?

 
Chaminda Amarasinghe
Ranch Hand
Posts: 404
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can somebody explain what is CallBack method and what is Inline method?

Why HFSJ says (page no 696)
1) The destroy() methoid of filter in always a container callback method

2) The doFilter method of a filter is a callback and an inline method?

Thanks

Chaminda
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
2) The doFilter method of a filter is a callback and an inline method?

Because doFilter is both in the Filter class and the FilterChain class. The former being a container callback, the later being a so-called "inline" method because you call it implicitly within a filter.

I think that you'll then understand why destroy() is only a callback.
 
Chaminda Amarasinghe
Ranch Hand
Posts: 404
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks friend...

Good explanation...
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic