Announcement Announcement Module
Collapse
No announcement yet.
OsgiServiceLifecycleListenerAdapter Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • OsgiServiceLifecycleListenerAdapter

    Hi,

    I was messing with the binding of services dynamically with something like that:
    Code:
    	
     <osgi:reference id="directory" interface="greenpages.Directory">
       <osgi:listener bind-method="bind" unbind-method="unbind" ref="bindservice"/>   
     </osgi:reference>
    but eclipse was all the time complaining about the missing class:
    OsgiServiceLifecycleListenerAdapter

    I went to the bundle repository list to check if that class exists, and I realized that I was using the bundle osgi.core version 1.2.0 that it doesn't have this class:
    http://www.springsource.com/reposito...&version=1.2.0

    I downgraded to the 1.1.3.RELEASE version of this bundle:
    http://www.springsource.com/reposito...istenerAdapter

    and now the binding works properly.
    My question is, how can I use this class with the 1.2.0 release of this bundle?? Is it in another bundle?


    Thank you very much.

    Best regards,
    Victor

  • #2
    The class you mentioned is internal - in 1.1.3 it was in a public package but with default visibility and since 1.2.x has moved into an internal one.
    I assume your problem might arise if you are trying to use different versions of Spring DM - i.e. use the 1.1.x parser with the 1.2.x classes.

    Comment

    Working...
    X