X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;ds=sidebyside;f=org.argeo.slc.repo%2Fsrc%2Forg%2Feclipse%2Faether%2Fcollection%2FDependencySelector.java;fp=org.argeo.slc.repo%2Fsrc%2Forg%2Feclipse%2Faether%2Fcollection%2FDependencySelector.java;h=0000000000000000000000000000000000000000;hb=ecc22e604e47533c79de9cecdcdeacbc752cbff1;hp=de503bedb4e12531a1fdc64449c9448c88b62da0;hpb=e07ded4632e53f8b8869763bc1f1f4091361e76e;p=gpl%2Fargeo-slc.git diff --git a/org.argeo.slc.repo/src/org/eclipse/aether/collection/DependencySelector.java b/org.argeo.slc.repo/src/org/eclipse/aether/collection/DependencySelector.java deleted file mode 100644 index de503bedb..000000000 --- a/org.argeo.slc.repo/src/org/eclipse/aether/collection/DependencySelector.java +++ /dev/null @@ -1,49 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010, 2014 Sonatype, Inc. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Sonatype, Inc. - initial API and implementation - *******************************************************************************/ -package org.eclipse.aether.collection; - -import org.eclipse.aether.graph.Dependency; - -/** - * Decides what dependencies to include in the dependency graph. - *

- * Note: Implementations must be stateless. - *

- * Warning: This hook is called from a hot spot and therefore implementations should pay attention to - * performance. Among others, implementations should provide a semantic {@link Object#equals(Object) equals()} method. - * - * @see org.eclipse.aether.RepositorySystemSession#getDependencySelector() - * @see org.eclipse.aether.RepositorySystem#collectDependencies(org.eclipse.aether.RepositorySystemSession, - * CollectRequest) - */ -public interface DependencySelector -{ - - /** - * Decides whether the specified dependency should be included in the dependency graph. - * - * @param dependency The dependency to check, must not be {@code null}. - * @return {@code false} if the dependency should be excluded from the children of the current node, {@code true} - * otherwise. - */ - boolean selectDependency( Dependency dependency ); - - /** - * Derives a dependency selector for the specified collection context. When calculating the child selector, - * implementors are strongly advised to simply return the current instance if nothing changed to help save memory. - * - * @param context The dependency collection context, must not be {@code null}. - * @return The dependency selector for the target node or {@code null} if dependencies should be unconditionally - * included in the sub graph. - */ - DependencySelector deriveChildSelector( DependencyCollectionContext context ); - -}