Rupert Westenthaler created STANBOL-1323:
--------------------------------------------

             Summary: 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)

Reply via email to