org.netbeans.modules.java.source 0.80.1 17

org.netbeans.api.java.source
Class BuildArtifactMapper

java.lang.Object
  extended by org.netbeans.api.java.source.BuildArtifactMapper

public class BuildArtifactMapper
extends Object

Since:
0.37

Nested Class Summary
static interface BuildArtifactMapper.ArtifactsUpdated
          Notify that the files in the output directory has been updated.
 
Constructor Summary
BuildArtifactMapper()
           
 
Method Summary
static void addArtifactsUpdatedListener(URL sourceRoot, BuildArtifactMapper.ArtifactsUpdated listener)
          Add an BuildArtifactMapper.ArtifactsUpdated listener.
static void removeArtifactsUpdatedListener(URL sourceRoot, BuildArtifactMapper.ArtifactsUpdated listener)
          Remove an BuildArtifactMapper.ArtifactsUpdated listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildArtifactMapper

public BuildArtifactMapper()
Method Detail

addArtifactsUpdatedListener

public static void addArtifactsUpdatedListener(@NonNull
                                               URL sourceRoot,
                                               @NonNull
                                               BuildArtifactMapper.ArtifactsUpdated listener)
Add an BuildArtifactMapper.ArtifactsUpdated listener. The method BuildArtifactMapper.ArtifactsUpdated.artifactsUpdated(java.lang.Iterable) will be called each time the files inside the output folder are updated. The output folder computed for the source root using the BinaryForSourceQuery. The files in the output folder are updated only if file .netbeans_automatic_build exists inside the output folder.

Parameters:
sourceRoot - the listener will be assigned to this source root
listener - listener to add
Since:
0.37

removeArtifactsUpdatedListener

public static void removeArtifactsUpdatedListener(@NonNull
                                                  URL sourceRoot,
                                                  @NonNull
                                                  BuildArtifactMapper.ArtifactsUpdated listener)
Remove an BuildArtifactMapper.ArtifactsUpdated listener.

Parameters:
sourceRoot - the listener will be assigned to this source root
listener - listener to add
Since:
0.37

org.netbeans.modules.java.source 0.80.1 17

Built on December 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.