aspose file tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes CallBack Methods and Inline Methods? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "CallBack Methods and Inline Methods?" Watch "CallBack Methods and Inline Methods?" New topic
Author

CallBack Methods and Inline Methods?

Chaminda Amarasinghe
Ranch Hand

Joined: May 17, 2006
Posts: 402
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

Joined: Nov 24, 2005
Posts: 14669
    
  11

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.


[My Blog]
All roads lead to JavaRanch
Chaminda Amarasinghe
Ranch Hand

Joined: May 17, 2006
Posts: 402
Thanks friend...

Good explanation...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CallBack Methods and Inline Methods?
 
Similar Threads
callback and inline method doubt
Container callback and inline methods
doubt on mock exam question
Container Callback method doubt
callback and inline methods