[jboss-jira] [JBoss JIRA] Closed: (JBMICROCONT-330) ScopeInfo should use the existing Mutable metadata if it already exists
Adrian Brock (JIRA)
jira-events at lists.jboss.org
Fri Aug 8 11:15:50 EDT 2008
[ https://jira.jboss.org/jira/browse/JBMICROCONT-330?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adrian Brock closed JBMICROCONT-330.
------------------------------------
Resolution: Done
This required moving the initialization of the construction of the main metadata context
to AbstractScopeInfo.
Additionally, I removed some bad assumptions about the INSTANCE MetaData context
being a MemoryMetaDataLoader.
> ScopeInfo should use the existing Mutable metadata if it already exists
> -----------------------------------------------------------------------
>
> Key: JBMICROCONT-330
> URL: https://jira.jboss.org/jira/browse/JBMICROCONT-330
> Project: JBoss MicroContainer
> Issue Type: Bug
> Components: Dependency
> Reporter: Adrian Brock
> Assignee: Adrian Brock
> Fix For: JBossMC.2.0.0.CR1
>
>
> Currently the AbstractScopeInfo class is always creating a new Mutable MetaMeta context within the MDR.
> This would cause a problem where the scope has already been constructed, e.g. by the deployers.
> public void addMetaData(MutableMetaDataRepository repository, ControllerContext context)
> {
> this.repository = repository;
> ScopeKey scope = getMutableScope();
> // Needs a check here for already exists - see the version of getMutableMetaData in AbstractDeploymentContext
> MemoryMetaDataLoader mutable = new MemoryMetaDataLoader(scope);
> repository.addMetaDataRetrieval(mutable);
> addMetaData(repository, context, mutable);
> }
> Similarly ScopeInfo::removeMetaData(), should not be removing MDR contexts it didn't construct.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list