@Override public boolean exists(ExtensionId extensionId) { boolean exists; try { resolve(extensionId); exists = true; } catch (ResolveException e) { exists = false; } return exists; } }
/** * @param descriptor the repository descriptor * @since 4.3M1 */ protected AbstractExtensionRepository(ExtensionRepositoryDescriptor descriptor) { setDescriptor(descriptor); }
/** * @param id the repository identifier * @deprecated since 4.3M1 use {@link #AbstractExtensionRepository(ExtensionRepositoryDescriptor)} instead */ @Deprecated protected AbstractExtensionRepository(ExtensionRepositoryId id) { setId(new ExtensionRepositoryId(id)); }