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