Resolves a property from the dynamic property map before normal lookup. @param property the property name @return the property value, or null if it is not defined
(String property)
| 86 | * @return the property value, or {@code null} if it is not defined |
| 87 | */ |
| 88 | @Override |
| 89 | public Object getProperty(String property) { |
| 90 | // always use the expando properties first |
| 91 | Object result = getProperties().get(property); |
| 92 | if (result != null) return result; |
| 93 | try { |
| 94 | return super.getProperty(property); |
| 95 | } |
| 96 | catch (MissingPropertyException e) { |
| 97 | // IGNORE |
| 98 | } |
| 99 | return null; |
| 100 | } |
| 101 | |
| 102 | /** |
| 103 | * Stores a dynamic property. |
no test coverage detected