Results 1 to 2 of 2

Thread: OsgiServiceLifecycleListenerAdapter

  1. #1
    Join Date
    May 2008
    Posts
    20

    Default 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...ersion= 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. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    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.
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •