in rsa/src/main/java/org/apache/aries/rsa/core/ImportRegistrationImpl.java [106:129]
private void instanceClosed(ImportRegistration iri) {
ensureParent();
synchronized (this) {
children.remove(iri);
if (!children.isEmpty() || detached || !closing.get()) {
return;
}
detached = true;
}
LOG.debug("really closing ImportRegistration now");
if (importedService != null) {
try {
importedService.unregister();
} catch (IllegalStateException ise) {
LOG.debug("imported service is already unregistered");
}
importedService = null;
}
if (clientServiceFactory != null) {
clientServiceFactory.setCloseable(true);
}
}