Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


javax.ide.build
Interface BuildListener

All Superinterfaces:
java.util.EventListener

public interface BuildListener
extends java.util.EventListener

Extension writers request notification of BuildSystem events by implementing this interface and registering their build listener with the extension deployment descriptor.

IDE providers are responsible for calling the BuildListener methods before their compiler starts compiling documents and immediately after it finishes doing so.


Method Summary
 void postBuild(BuildEvent event)
          When the compiler finishes compiling documents, the postBuild methods are called.
 void preBuild(BuildEvent event)
          The preBuild method is called before documents are compiled.

 

Method Detail

preBuild

void preBuild(BuildEvent event)
              throws AbortBuildException
The preBuild method is called before documents are compiled. If a listener throws an AbortBuildException, the entire build is aborted and the postBuild methods are called immediately on the listeners whose preBuild method had a chance to execute (incuding the one that aborted the build).

The postBuild method is not called on listener that did not execute their preBuild method.

This method may be called from threads other than the AWT event thread.

Parameters:
event - the build event.
Throws:
AbortBuildException - to abort the entire build.

postBuild

void postBuild(BuildEvent event)
               throws AbortBuildException
When the compiler finishes compiling documents, the postBuild methods are called. If any postBuild method throws an AbortBuildException, the postBuild methods are still called on the remaining listeners. Implementors of the postBuild method must always check the BuildEvent.isBuildSuccessful() method before continuing.

This method may be called from threads other than the AWT event thread.

Parameters:
event - the build event.
Throws:
AbortBuildException - to abort the entire build.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


Copyright © 1997, 2012, Oracle. All rights reserved.