[jboss-jira] [JBoss JIRA] (AS7-5215) Deployments unecessarily trigger Framework create service
Thomas Diesler (JIRA)
jira-events at lists.jboss.org
Tue Jul 24 03:36:06 EDT 2012
[ https://issues.jboss.org/browse/AS7-5215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Diesler reassigned AS7-5215:
-----------------------------------
Assignee: Thomas Diesler
> Deployments unecessarily trigger Framework create service
> ---------------------------------------------------------
>
> Key: AS7-5215
> URL: https://issues.jboss.org/browse/AS7-5215
> Project: Application Server 7
> Issue Type: Bug
> Components: OSGi
> Reporter: Thomas Diesler
> Assignee: Thomas Diesler
> Fix For: 7.2.0.Alpha1
>
>
> Non-OSGi deployments are registered with the resolver environment (XEnvironment) so that bundle can define requirements on the package capabilities of those deployments.
> There is plenty of processing needed in order to obtain those non-osgi capabilities and to register them with the environment. The OSGi resolver may however never be activated and there may never be any (bundle) deployment that defines requirements on those capabilities.
> This processing should be lazy and triggered by an actual resolve request.
> Remove this from FrameworkActivateProcessor
> {code}
> // Always make the system context & the environment available
> phaseContext.addDeploymentDependency(Services.SYSTEM_CONTEXT, OSGiConstants.SYSTEM_CONTEXT_KEY);
> phaseContext.addDeploymentDependency(Services.ENVIRONMENT, OSGiConstants.ENVIRONMENT_KEY);
> {code}
> and do this more intelligently.
--
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