Modular library

From APIDesign

(Difference between revisions)
Jump to: navigation, search
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.xml.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).
+
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).

Personal tools
buy