-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/17756/
-----------------------------------------------------------
Review request for Ambari, Artem Baranchuk and Nate Cole.
Bugs: AMBARI-4538
https://issues.apache.org/jira/browse/AMBARI-4538
Repository: ambari
Description
-------
Views will need to access the Ambari configuration. Add a method to the view
context that exposes the Ambari configuration properties.
{code}
/**
* Get a property for the given key from the ambari configuration.
*
* @param key the property key
*
* @return the property value; null indicates that the configuration contains
no mapping for the key
*/
public String getAmbariProperty(String key);
{code}
Diffs
-----
ambari-server/src/main/java/org/apache/ambari/server/view/ViewContextImpl.java
0106c1d
ambari-server/src/main/java/org/apache/ambari/server/view/ViewDefinition.java
8a60667
ambari-server/src/main/java/org/apache/ambari/server/view/ViewRegistry.java
a653415
ambari-server/src/test/java/org/apache/ambari/server/view/ViewDefinitionTest.java
5cf871e
ambari-views/src/main/java/org/apache/ambari/view/ViewContext.java 37bf6d5
Diff: https://reviews.apache.org/r/17756/diff/
Testing
-------
New unit test added.
Thanks,
Tom Beerbower