Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

An Open Framework

FIT is a very different kind of framework. You might have noticed from the UML diagram in Figure 6-3 that nearly everything in the core framework is public, even the data. If you glance though the code of other popular frameworks, you’ll find nothing quite like it. How could this possibly work? It works because FIT is an example of an open framework. It doesn’t have a small set of designed extension points; the entire framework was designed to be extensible.

Let’s take a look at the Fixture class. Clients of the Fixture class use it in a very direct way. They create an instance of Fixture, create a parse tree for an HTML document using Parse, and then pass the tree to the doTables method. The doTables method then calls doTable for each table in the document, passing along the appropriate parse subtree.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint