Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2008, 2010 VMware 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 Contributors: VMware Inc. - initial contribution /
package org.eclipse.virgo.kernel.model.internal;
Interface used to provide the values of the dependents of a given org.eclipse.virgo.kernel.model.Artifact. Implementations of this interface should be registered in the OSGi Service Registry with a service property of artifactType. The value of this property should indicate which type of artifact this DependencyDeterminer can be used for.

Concurrent Semantics
Implementations should be threadsafe

public interface DependencyDeterminer {

Returns the collection of dependent org.eclipse.virgo.kernel.model.Artifacts for a given root org.eclipse.virgo.kernel.model.Artifact. Note that the artifacts that are returned from this determiner should already be contained in the RuntimeArtifactRepository. The single instance of this may need to be injected into the DependencyDeterminer implementation.

rootArtifact The org.eclipse.virgo.kernel.model.Artifact to find dependents for
The collection of dependent org.eclipse.virgo.kernel.model.Artifacts
    Set<ArtifactgetDependents(Artifact rootArtifact);
New to GrepCode? Check out our FAQ X