|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
CopyListener instances are objects created by BuildSystem/CopyTranslator clients and used by the BuildSystem CopyTranslator part as a callback mechanism to allow clients to copy the resource file themselves or change the output name/path, or prevent a particular file from being copied or ... A BuildSystem client would write a CopyListener implementation and plug it in the build system using JCompiler.addCopyListener(). The BuildSystem allows you to register one or more listener objects. The method handleCopy would be called as specified below. If more than one listener is registered, each listener would be called in the order the've been registered. The ordering is not customizable. Each listeners are called in sequential fashion until one of them handles the copy itself by returning true, others after that are not being called anymore. BuildSystem client may remove listener at anytime using the JCompiler.removeCopyListener() API.
Method Summary | |
boolean |
handleCopy(java.net.URL srcURL,
java.net.URL[] outputURL)
This method is called just before actually copying from src to destination. |
void |
initialize(Project project)
This method allows the listener implementation to initialize any data that will be used by every single call to handleCopy(). |
void |
terminate()
This method allows the listener implementation to cleanup any temporarty data created by initialize() and/or handleCopy(). |
Method Detail |
public void initialize(Project project)
project
- -- the project in contextpublic void terminate()
public boolean handleCopy(java.net.URL srcURL, java.net.URL[] outputURL)
srcURL
- -- the element to copy from
- output parameter -outputURL
- -- on input, this array contains one and only one
element which is null, on output, if non null,
the caller will use the specified URL and the
destination element name.
|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©1997, 2003, Oracle. All rights reserved.