Announcement Announcement Module

Spring Dynamic Modules forum decommissioned in favor of Eclipse Gemini Blueprint

With the official first release of Eclipse Gemini Blueprint shipped, the migration of the Spring Dynamic Modules code base to the Eclipse Foundation, as part of the Gemini project, has been completed.

As such, this forum has been decommissioned in favour of the Eclipse Gemini forums.
See more
See less
Checking service availability given proxy Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Checking service availability given proxy

    Is there an easy way to detect whether or not the underlying service of an osgi:reference bean is available without having to register as a listener? For example casting to Spring's proxy interface and calling a method isBound or something?

    This would be useful for initially disabling a user interface element when using Spring-DM on the client side (Eclipse RCP).

  • #2
    ((ImportedOsgiServiceProxy)yourRef).getServiceRefe rence().getTargetServiceReference() == null)