[
https://issues.jboss.org/browse/JBIDE-10344?page=com.atlassian.jira.plugi...
]
Andre Dietisheim edited comment on JBIDE-10344 at 1/6/12 8:29 AM:
------------------------------------------------------------------
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}
was (Author: adietish):
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