[
https://issues.apache.org/jira/browse/EAGLE-431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15415043#comment-15415043
]
Hao Chen commented on EAGLE-431:
--------------------------------
In EAGLE-442, application is able to extend metadata modules by scope
(global/memory/mysql/mongod ..) in SPI, so resources/services could inject
required service like Config with @Inject annotation, we should treat this as
the standard practice, so that we don't need to lots of separated
MetadataDaoFactory in different modules.
{code}
@Inject
public JDBCSecurityMetadataDAO(Config config){
this.config = config;
}
{code}
> MetadataDaoFactory should use config from eagle server
> ------------------------------------------------------
>
> Key: EAGLE-431
> URL: https://issues.apache.org/jira/browse/EAGLE-431
> Project: Eagle
> Issue Type: Improvement
> Affects Versions: v0.5.0
> Reporter: Edward Zhang
> Assignee: Hao Chen
> Fix For: v0.5.0
>
>
> org.apache.eagle.alert.metadata.impl.MetadataDaoFactory uses
> ConfigFactory.load() to get configuration. We should use config object from
> eagle server.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)