[jboss-jira] [JBoss JIRA] (AS7-3590) Deprecate OperationContext.getRootResource(); provide variant to get a read only view of an addressed branch of the Resource tree
Emanuel Muckenhuber (JIRA)
jira-events at lists.jboss.org
Tue Feb 21 12:20:36 EST 2012
[ https://issues.jboss.org/browse/AS7-3590?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emanuel Muckenhuber reassigned AS7-3590:
----------------------------------------
Assignee: Emanuel Muckenhuber (was: Brian Stansberry)
> Deprecate OperationContext.getRootResource(); provide variant to get a read only view of an addressed branch of the Resource tree
> ---------------------------------------------------------------------------------------------------------------------------------
>
> Key: AS7-3590
> URL: https://issues.jboss.org/browse/AS7-3590
> Project: Application Server 7
> Issue Type: Task
> Components: Domain Management
> Reporter: Brian Stansberry
> Assignee: Emanuel Muckenhuber
> Priority: Critical
> Fix For: 7.1.1.Final
>
>
> OperationContext.getRootResource() is very expensive as it clones the entire model in order to provide a defensive copy that callers can't use to mutate parent resources.
> In almost all cases the caller then navigates to a lower level of the tree to read. The OperationContext should provide a method to do this for them, restricting the cost of defending against writes to the portion of the tree the caller actually cares about.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list