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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
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: 14688
    
  16

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?