Skip to main content

[json-processing-spec issues] [JIRA] Closed: (JSON_PROCESSING_SPEC-10) Clarify default provider class loading semantics

  • From: "jitu (JIRA)" < >
  • To:
  • Subject: [json-processing-spec issues] [JIRA] Closed: (JSON_PROCESSING_SPEC-10) Clarify default provider class loading semantics
  • Date: Tue, 27 Nov 2012 22:03:12 +0000 (GMT+00:00)
  • Auto-submitted: auto-generated


     [ 
http://java.net/jira/browse/JSON_PROCESSING_SPEC-10?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

jitu closed JSON_PROCESSING_SPEC-10.
------------------------------------

    Resolution: Fixed

Not specifying how a default provider is loaded.

* Also considered specifying a system property for a provider name. The order 
considered was:
1) system property
2) ServiceLoader
3) default provider

That doesn't work well when a webapp bundles its own provider in a war file 
(if a system property is already defined).

* If we define the order to be 
1) ServiceLoader
2) System property
3) default provider

then system property doesn't work well(since one of the providers are picked 
up using ServiceLoader).

so not specifying system property as it is of limited use.


> Clarify default provider class loading semantics
> ------------------------------------------------
>
>                 Key: JSON_PROCESSING_SPEC-10
>                 URL: http://java.net/jira/browse/JSON_PROCESSING_SPEC-10
>             Project: json-processing-spec
>          Issue Type: Improvement
>            Reporter: jitu
>             Fix For: 1.0-pr
>
>
> If a OSGi bundle includes both api+impl without META-INF/services entry, 
> the default impl won't be loaded by TCC(since TCC may be webapp classloader)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[json-processing-spec issues] [JIRA] Closed: (JSON_PROCESSING_SPEC-10) Clarify default provider class loading semantics

jitu (JIRA) 11/27/2012
 
 
Close
loading
Please Confirm
Close