1 package com.atlassian.plugin.osgi.bridge.external;
2
3 public class InitializingOsgiServiceLifecycleListener
4 {
5 public void bind(final Object serviceProxy)
6 {
7 // Call a method on the proxy to force it to load the underlying service (on startup), which is how Spring DM 1.x behaved.
8 // toString() is actually the only method we can use, since the proxy overrides equals() and hashCode().
9 serviceProxy.toString();
10 }
11 }