ServiceLoader
From APIDesign
(Difference between revisions)
Line 1: | Line 1: | ||
[[JDK]] 6 [[API]] to do [[Component Injection]]. External reference: | [[JDK]] 6 [[API]] to do [[Component Injection]]. External reference: | ||
* [[Javadoc]] of {{JDK|java/util|ServiceLoader}} | * [[Javadoc]] of {{JDK|java/util|ServiceLoader}} | ||
- | * [http:// | + | * [http://docs.oracle.com/javase/6/docs/technotes/guides/jar/jar.html#Service%20Provider Service Provider] Specification |
For dynamic environment it may be more appropriate to use independent [[Lookup]] library as the [[ClientAPI]] for access to [[ServiceLoader]] due to its support for change notification. | For dynamic environment it may be more appropriate to use independent [[Lookup]] library as the [[ClientAPI]] for access to [[ServiceLoader]] due to its support for change notification. |
Current revision
JDK 6 API to do Component Injection. External reference:
- Javadoc of ServiceLoader
- Service Provider Specification
For dynamic environment it may be more appropriate to use independent Lookup library as the ClientAPI for access to ServiceLoader due to its support for change notification.