Update `CommonsInterpolator` doc to reflect actual behavior

The stated behavior is not the observed.

This is a complement to: https://github.com/apache/shiro-site/pull/82

The relevant section of the commons-configuration class is:

> After an instance has been created *it does not contain any Lookup objects*. The current set of lookup objects can be modified using the registerLookup() and deregisterLookup() methods. *Default lookup objects (that are invoked for variables without a prefix)* can be added or removed with the addDefaultLookup() and removeDefaultLookup() methods respectively. (When a ConfigurationInterpolator instance is created by a configuration object, a default lookup object is added pointing to the configuration itself, so that variables are resolved using the configuration's properties.)

So, the correct behavior is that you can use `${const:java.awt.event.KeyEvent.VK_ENTER}` but not `${env:EDITOR}`.  The current code accepts `${EDITOR}`. If a system property with this name is found not null, it is used, if not, an environment variable is search and if not, the whole substitution `${EDITOR}` is returned.
1 file changed
tree: a85ea1c1d49645e2c040f551a15889fa06add58e
  1. .github/
  2. cache/
  3. config/
  4. core/
  5. crypto/
  6. event/
  7. integration-tests/
  8. lang/
  9. samples/
  10. src/
  11. support/
  12. test-coverage/
  13. tools/
  14. web/
  15. .asf.yaml
  16. .gitignore
  17. .jenkins.groovy
  18. CONTRIBUTING.md
  19. LICENSE
  20. NOTICE
  21. pom.xml
  22. README
  23. README.md
  24. RELEASE-NOTES
  25. shiro.doap.rdf
README.md

Maven Central Build Status

Apache Shiro

Apache Shiro is a powerful and easy-to-use Java security framework that performs authentication, authorization, cryptography, and session management. With Shiro’s easy-to-understand API, you can quickly and easily secure any application – from the smallest mobile applications to the largest web and enterprise applications.

Documentation and Examples

http://shiro.apache.org

Tutorials

License

Apache License, Version 2.0