[jbosstools-issues] [JBoss JIRA] (JBIDE-10344) consider refactor how AS7 management service is done to avoid eager loading
Andre Dietisheim (Commented) (JIRA)
jira-events at lists.jboss.org
Fri Jan 6 08:30:09 EST 2012
[ https://issues.jboss.org/browse/JBIDE-10344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12654290#comment-12654290 ]
Andre Dietisheim commented on JBIDE-10344:
------------------------------------------
The following statement is not precise:
{quote}
convert it to a non-declarative service and load it lazily
{quote}
The management service is still a declarative service. It is declared via org.jboss.ide.eclipse.as.management.as71/META-INF/jboss-management-service.xml
{code}
<?xml version="1.0" encoding="UTF-8"?>
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" enabled="true" immediate="false" name="org.jboss.ide.eclipse.as.management.as71.service">
<implementation class="org.jboss.ide.eclipse.as.internal.management.as71.JBoss71ManagerService"/>
<service>
<provide interface="org.jboss.ide.eclipse.as.management.core.IJBoss7ManagerService"/>
</service>
<property name="as.version" type="String" value="710.beta1"/>
</scr:component>
{code}
It is now loaded lazyly with the following addition to the service declaration:
{code}
immediate="false"
{code}
> consider refactor how AS7 management service is done to avoid eager loading
> ---------------------------------------------------------------------------
>
> Key: JBIDE-10344
> URL: https://issues.jboss.org/browse/JBIDE-10344
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: JBossAS/Servers
> Affects Versions: 3.3.0.M5
> Environment: JBoss Tools 3.3.0 Nightly (2011-11-30_14-04-32-H4078)
> Mac + Ubuntu
> Reporter: Rob Stryker
> Assignee: Rob Stryker
> Priority: Blocker
> Fix For: 3.3.0.Beta1
>
> Attachments: start-osgi-services-lazy.patch
>
>
> AS71 and AS70 management interfaces points back to as.core causing eager loading.
> could move the as.core interfaces into a shared bundle instead or not use declarative services for AS7.
> Need to consider the options.
--
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 jbosstools-issues
mailing list