Brian Stansberry created WFCORE-3483:
----------------------------------------
Summary: Deprecated PathAddress.navigate and remove, replace controller
catches of NoSuchElementException with Resource.NoSuchResourceException
Key: WFCORE-3483
URL:
https://issues.jboss.org/browse/WFCORE-3483
Project: WildFly Core
Issue Type: Task
Components: Domain Management
Reporter: Brian Stansberry
Assignee: Brian Stansberry
Priority: Minor
The management layer has some old code that uses throwing or catching of
NoSuchElementException as a way to represent that a resource doesn't exist. Clean this
out so we can more easily move to a cleaner set of exceptions.
This work will consist of two aspects:
1) Code that's meant to catch Resource.NoSuchResourceException but instead catches its
superclass NoSuchElementException will shift to catching the subclass. This will make the
true intent of the code clearer.
2) The unused PathAddress.navigate and remove methods, which throw NoSuchElementException,
will be deprecated. Using PathAddress to maneuver through a deep DMR node tree is not
really how management works ever since we introduced the Resource class long long ago
(hence these methods are unused.)
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)