jbossas/jboss-as — pull request #1335 by bstansberry (2012-02-02 04:46:56+00:00)
Title: Deprecate getModulesDir()

ServerEnvironment and HostControllerEnvironment getModulesDir() provide non-reliable information, since there is no contract that JBoss Modules reads modules from there, or only from there. Nor is there any contract provided by the method as to how the contents of the directory are structured even if the directory is the only location used by JBoss Modules.

JBoss Modules APIs should be used for interacting with modules.

Therefore these methods are deprecated.