import org.amdatu.remote.topologymanager.TopologyManager;
import org.amdatu.remote.topologymanager.TopologyEventListener;
import org.osgi.service.component.annotations.*;
import org.osgi.service.remoteserviceadmin.EndpointDescription;
@Component
public class MyDistributedApp implements TopologyEventListener {
@Reference
private TopologyManager topologyManager;
@Activate
public void activate() {
topologyManager.addListener(this);
}
@Override
public void endpointAdded(EndpointDescription endpoint) {
}
@Override
public void endpointRemoved(EndpointDescription endpoint) {
}
@Deactivate
public void deactivate() {
topologyManager.removeListener(this);
}
}