Modular library
From APIDesign
(Difference between revisions)
Line 1: | Line 1: | ||
- | In contrast to [[simple library]], the modular [[library]] is ready for being extended. It contains [[API]], but often it requires (or allows) someone else to provide useful implementation. Classical example can be javax | + | In contrast to [[simple library]], the modular [[library]] is ready for being extended. It contains [[API]], but often it requires (or allows) someone else to provide useful implementation. Classical example can be {{JDK|javax/xml/parsers|DocumentBuilderFactory}} which just defines the [[API]] but allows others to plug in various implementations of the [[XML]] parsers (and requires at least one provider to be present). |
Revision as of 22:19, 24 April 2012
In contrast to simple library, the modular library is ready for being extended. It contains API, but often it requires (or allows) someone else to provide useful implementation. Classical example can be DocumentBuilderFactory which just defines the API but allows others to plug in various implementations of the XML parsers (and requires at least one provider to be present).