[
https://issues.apache.org/jira/browse/FELIX-5177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15151124#comment-15151124
]
Pierre De Rop commented on FELIX-5177:
--------------------------------------
added a 'configType' attribute in FactoryConfigurationAdapterService
annotation. When you want to declare a factory pid adapter that is using a
config type, you then should declare a configType attribute, instead of the old
factoryPidClass attribute, which is now deprecated:
{code}
@FactoryConfigurationAdapterService(configType = DictionaryConfiguration.class)
public class DictionaryImpl implements DictionaryService {
protected void updated(DictionaryConfiguration cnf) {
m_lang = cnf.lang();
m_words.clear();
for (String word : cnf.words()) {
m_words.add(word);
}
}
}
{code}
Also, added many javadocs, especially in ConfigurationDependency (in api, as
well as in annotations).
> Support injecting configuration proxies
> ---------------------------------------
>
> Key: FELIX-5177
> URL: https://issues.apache.org/jira/browse/FELIX-5177
> Project: Felix
> Issue Type: Improvement
> Components: Dependency Manager, Dependency Manager Annotations,
> Dependency Manager Lambda, Dependency Manager Runtime
> Reporter: J.W. Janssen
> Assignee: Pierre De Rop
> Fix For: org.apache.felix.dependencymanager-r7
>
> Attachments: FELIX-5177.patch
>
>
> DM supports mandatory configurations, but does not allow anything other than
> a dictionary to be passed to the callback. In other DI frameworks (like DS)
> it is possible to use type-safe configurations and let those be injected
> instead of plain dictionaries.
> It would be great if DM also would support this, as it would remove lots of
> configuration boiler plate code from our projects.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)