[
https://issues.apache.org/jira/browse/STANBOL-1323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13972350#comment-13972350
]
Rupert Westenthaler commented on STANBOL-1323:
----------------------------------------------
Backward Compatibility:
With updating the Felix module versions with STANBOL-1322 in the 0.12.1 release
the `o.a.s.entityhub.site.linkeddata` module 0.12.0 would no longer work (as
for the reason described by this issue). Because of that empty service
configuration files for
* org.apache.stanbol.entityhub.dereferencer.CoolUriDereferencer
* org.apache.stanbol.entityhub.dereferencer.SparqlDereferencer
* org.apache.stanbol.entityhub.searcher.SparqlSearcher
* org.apache.stanbol.entityhub.searcher.VirtuosoSearcher
* org.apache.stanbol.entityhub.searcher.LarqSearcher
will be added to the `o.a.s.entityhub.defaults` module. This ensures that users
using the 0.12.1 version of the `o.a.s.entityhub.defaults`module will still be
able to use earlier versions of the Entityhub. Users that do not want to use
the 0.12.1 version of the `o.a.s.entityhub.defaults` module can also provide
the configurations listed above by some other means.
> Change ConfigurationPolicy of all EntityDereferencer and EntitySearcher
> ComponentFactories to OPTIONAL
> ------------------------------------------------------------------------------------------------------
>
> Key: STANBOL-1323
> URL: https://issues.apache.org/jira/browse/STANBOL-1323
> Project: Stanbol
> Issue Type: Bug
> Components: Entityhub
> Reporter: Rupert Westenthaler
> Assignee: Rupert Westenthaler
> Fix For: 1.0.0, 0.12.1
>
>
> All EntityDereferencer and EntitySearcher implementations (all of them in the
> entityhub.site.linkeddata module) have used ConfigurationPolicy.REQUIRE since
> the beginning. The idea was that instances created with this
> ComponentFactories do require a configuration. However that is not the
> intention of the annotation. The annotation defines if the factory needs a
> configuration. As this is not required the correct annotation is
> ConfigurationPolicy.OPTIONAL.
> Before STANBOL-1322 this was not an issue as the used Felix version had
> ignored the configuration policy for ComponentFactories. However after the
> version update this is no longer the case and the therefore no
> ComponentFactories for EntityDereferencer and EntitySearcher where created.
> Because of that no Entityhub ReferencedSite with configured EntitySearcher or
> EntityDereferencer could be created.
> To Solve this one needs to changte the ConfigurationPolicy annotation of all
> EntityDereferencer and EntitySearcher implementations from REQUIRE to
> OPTIONAL (the default).
--
This message was sent by Atlassian JIRA
(v6.2#6252)