cdi-extender/src/main/java/org/apache/aries/cdi/container/internal/model/FactoryComponent.java [58:89]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	public boolean close() {
		try (Syncro open = syncro.open()) {
			if (_snapshot == null) {
				return true;
			}

			_snapshot.instances.removeIf(
				instance -> {
					ExtendedComponentInstanceDTO einstance = (ExtendedComponentInstanceDTO)instance;

					Promise<Boolean> result = submit(einstance.closeOp(), einstance::close).onFailure(
						f -> {
							_log.error(l -> l.error("CCR Error in factory component close for {} on {}", einstance.ident(), bundle(), f));
						}
					);

					try {
						return result.getValue();
					}
					catch (InvocationTargetException | InterruptedException e) {
						return Throw.exception(e);
					}
				}
			);

			containerState.containerDTO().components.remove(_snapshot);

			_snapshot = null;

			return true;
		}
	}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



cdi-extender/src/main/java/org/apache/aries/cdi/container/internal/model/ContainerComponent.java [61:91]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	public boolean close() {
		try (Syncro open = syncro.open()) {
			if (_snapshot == null) {
				return true;
			}

			_snapshot.instances.removeIf(
				instance -> {
					ExtendedComponentInstanceDTO einstance = (ExtendedComponentInstanceDTO)instance;

					Promise<Boolean> result = submit(einstance.closeOp(), einstance::close).onFailure(
						f -> {
							_log.error(l -> l.error("CCR Error in container component close for {} on {}", einstance.ident(), bundle(), f));
						}
					);

					try {
						return result.getValue();
					}
					catch (InvocationTargetException | InterruptedException e) {
						return Throw.exception(e);
					}
				}
			);

			containerState.containerDTO().components.remove(_snapshot);
			_snapshot = null;

			return true;
		}
	}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



cdi-extender/src/main/java/org/apache/aries/cdi/container/internal/model/SingleComponent.java [58:89]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	public boolean close() {
		try (Syncro open = syncro.open()) {
			if (_snapshot == null) {
				return true;
			}

			_snapshot.instances.removeIf(
				instance -> {
					ExtendedComponentInstanceDTO einstance = (ExtendedComponentInstanceDTO)instance;

					Promise<Boolean> result = submit(einstance.closeOp(), einstance::close).onFailure(
						f -> {
							_log.error(l -> l.error("CCR Error in single component close for {} on {}", einstance.ident(), bundle(), f));
						}
					);

					try {
						return result.getValue();
					}
					catch (InvocationTargetException | InterruptedException e) {
						return Throw.exception(e);
					}
				}
			);

			containerState.containerDTO().components.remove(_snapshot);

			_snapshot = null;

			return true;
		}
	}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



