|
Lines 1-16
Link Here
|
| 1 |
The Discovery Component is about discovering, or finding, implementations for |
|
|
| 2 |
pluggable interfaces. It provides facilities instantiating classes in general, |
| 3 |
and for lifecycle management of singleton (factory) classes. |
| 4 |
|
| 5 |
Fundamentally, Discovery locates classes that implement a given Java interface. |
| 6 |
The discovery pattern, though not necessarily this package, is used in many |
| 7 |
projects including JAXP (SaxParserFactory and others) and commons-logging |
| 8 |
(LogFactory). By extracting this pattern, other projects can (re)use it and |
| 9 |
take advantage of improvements to the pattern as Discovery evolves. |
| 10 |
|
| 11 |
Discovery improves over previous implementations by establishing facilities for |
| 12 |
working within managed environments. These allow configuration and property |
| 13 |
overrides without appealing to the global System properties (which are scoped |
| 14 |
across an entire JVM). |
| 15 |
|
| 16 |
WWW: http://commons.apache.org/discovery/ |