Exforsys

Online Training

Interface pattern or component customisation pattern?

This is a discussion on Interface pattern or component customisation pattern? within the Software Patterns forums, part of the Testing category; Hi I have now spend at least 6 months researching patterns on and off. Read books as well. But i ...


Go Back   Exforsys > Testing > Software Patterns

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-23-2004, 12:13 PM
Martin
Guest
 
Posts: n/a
Interface pattern or component customisation pattern?

Hi

I have now spend at least 6 months researching patterns on and off.
Read books as well. But i still feel i am not coming to grips with
them very well. I have found a particular technique that is used in
'cxerces' (XML parser) and i would like to know if it was perhaps
written after a pattern. Think i should actually ask the designers,
but anyway ...

In short: xerces library allows clients to supply their own error
handler object which is then used to handle errors. The client then
calls the library to parse XML file and if there are errors the
supplied error handler will do what ever the client instructed it to
do. The library actually provides an interface class (in C++) from
which the client derives their own class.

This looks to me like something very common because it allows for
customisation of a library (or a component if you like) in a type safe
manner. I have identified two or three patterns (whose names i forgot
now) which seemed to kind of match the above description but i was
never satisfied with the match.

Is there a pattern which describes this behaviour/solution? What am I
doing wrong?

Martin.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 03:32 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.