Java Doc for IFetchFactory.java in  » IDE-Eclipse » Eclipse-plug-in-development » org » eclipse » pde » build » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Eclipse » Eclipse plug in development » org.eclipse.pde.build 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.eclipse.pde.build.IFetchFactory

All known Subclasses:   org.eclipse.pde.internal.build.fetch.GETFetchFactory,  org.eclipse.pde.internal.build.fetch.CVSFetchTaskFactory,  org.eclipse.pde.internal.build.fetch.COPYFetchTasksFactory,
IFetchFactory
public interface IFetchFactory (Code)
Interface to be implemented by clients of the org.eclipse.pde.build.fetchFactories extension-point.

The factories are being used at various points in the execution of the PDE Buildeclipse.fetch Ant task. Based on a map file entry, they are responsible for generating segments of an ant script whose execution will fetch plug-ins, fragments, bundles and features or individual files contained in one of those elements. The format of a map file entry is: <elementType>@<elementName> = <repositoryTag>, <repositoryDetails> The format of elementType and elementName is fixed. The factories specify the value of repositoryTag and the format of the repositoryDetails. repositoryTag and repositoryDetails becomes defacto APIs.
repositoryTag should match the factory id used when declaring the factory extension. For example, for the CVS the value is "CVS". repositoryDetails should contains enough details to allow the factory to generate a fetch script retrieving the element.

The fetch factories are being contributed through the org.eclipse.pde.build.fetchFactories extension-points.


since:
   3.2


Field Summary
final public static  StringELEMENT_TYPE_BUNDLE
     One of the value for element type.
final public static  StringELEMENT_TYPE_FEATURE
     One of the value for element type.
final public static  StringELEMENT_TYPE_FRAGMENT
     One of the value for element type.
final public static  StringELEMENT_TYPE_PLUGIN
     One of the value for element type.
final public static  StringKEY_ELEMENT_NAME
     Key used to store the value of the element name.
final public static  StringKEY_ELEMENT_TAG
     Key used to store the value of the tag that will be used to fetch the element.
final public static  StringKEY_ELEMENT_TYPE
    


Method Summary
public  voidaddTargets(IAntScript script)
     This methods give opportunities to the factory to generate target declaration or other Ant top level constructs in the script.
public  voidgenerateRetrieveElementCall(Map entryInfos, IPath destination, IAntScript script)
     Generates a segment of ant script whose execution will fetch the element (bundle, plug-in, fragment, feature) indicated in the entryInfos arguments.


Parameters:
  entryInfos - the map that has been built in the IFetchFactory.parseMapFileEntry(String,Properties,Map) method.This map contains the name and the type of the element (resp.

public  voidgenerateRetrieveFilesCall(Map entryInfos, IPath destination, String[] files, IAntScript script)
     Generates a segment of ant script whose execution will fetch the specified file from the given element.


Parameters:
  entryInfos - the map that has been built in the IFetchFactory.parseMapFileEntry(String,Properties,Map) method.This map contains the name and the type of the element (resp.

public  voidparseMapFileEntry(String rawEntry, Properties overrideTags, Map entryInfos)
     This method should parse / validate a mapfile entry and derive a corresponding key / value pair structure containing the relevant information.

The arguments specified in the map file are provided.


Field Detail
ELEMENT_TYPE_BUNDLE
final public static String ELEMENT_TYPE_BUNDLE(Code)
One of the value for element type. See IFetchFactory.KEY_ELEMENT_TYPE .



ELEMENT_TYPE_FEATURE
final public static String ELEMENT_TYPE_FEATURE(Code)
One of the value for element type. See IFetchFactory.KEY_ELEMENT_TYPE .



ELEMENT_TYPE_FRAGMENT
final public static String ELEMENT_TYPE_FRAGMENT(Code)
One of the value for element type. See IFetchFactory.KEY_ELEMENT_TYPE .



ELEMENT_TYPE_PLUGIN
final public static String ELEMENT_TYPE_PLUGIN(Code)
One of the value for element type. See IFetchFactory.KEY_ELEMENT_TYPE .



KEY_ELEMENT_NAME
final public static String KEY_ELEMENT_NAME(Code)
Key used to store the value of the element name.



KEY_ELEMENT_TAG
final public static String KEY_ELEMENT_TAG(Code)
Key used to store the value of the tag that will be used to fetch the element.

The grammar of the expected value is limited to:

 value::= (alpha|digit|'_'|'-')+
 digit ::= [0..9]
 alpha ::= [a..zA..Z]
 



KEY_ELEMENT_TYPE
final public static String KEY_ELEMENT_TYPE(Code)
Key used to store the value of the element type





Method Detail
addTargets
public void addTargets(IAntScript script)(Code)
This methods give opportunities to the factory to generate target declaration or other Ant top level constructs in the script. The generated elements can be invoked from the ant scripts segments created in IFetchFactory.generateRetrieveElementCall(Map,IPath,IAntScript) and IFetchFactory.generateRetrieveFilesCall(Map,IPath,String[],IAntScript) .



generateRetrieveElementCall
public void generateRetrieveElementCall(Map entryInfos, IPath destination, IAntScript script)(Code)
Generates a segment of ant script whose execution will fetch the element (bundle, plug-in, fragment, feature) indicated in the entryInfos arguments.


Parameters:
  entryInfos - the map that has been built in the IFetchFactory.parseMapFileEntry(String,Properties,Map) method.This map contains the name and the type of the element (resp. IFetchFactory.KEY_ELEMENT_NAME and IFetchFactory.KEY_ELEMENT_TYPE) to put in the destination.
Parameters:
  destination - the destination where the element should be fetched to. For example, for a plug-in the plugin.xml file is expectedto be in destination/plugin.xml.
Parameters:
  script - the script in which to generate the segments of ant script. It is not authorized to generate target declaration during this call.




generateRetrieveFilesCall
public void generateRetrieveFilesCall(Map entryInfos, IPath destination, String[] files, IAntScript script)(Code)
Generates a segment of ant script whose execution will fetch the specified file from the given element.


Parameters:
  entryInfos - the map that has been built in the IFetchFactory.parseMapFileEntry(String,Properties,Map) method.This map contains the name and the type of the element (resp. IFetchFactory.KEY_ELEMENT_NAME and IFetchFactory.KEY_ELEMENT_TYPE) to put in the destination.
Parameters:
  destination - the destination where the element should be fetched to. For example, for a plug-in the plugin.xml file is expectedto be in destination/plugin.xml.
Parameters:
  files - the files to obtained for the specified element.
Parameters:
  script - the script in which to generate the segments of ant script. It is not authorized to generate target declaration during this call.




parseMapFileEntry
public void parseMapFileEntry(String rawEntry, Properties overrideTags, Map entryInfos) throws CoreException(Code)
This method should parse / validate a mapfile entry and derive a corresponding key / value pair structure containing the relevant information.

The arguments specified in the map file are provided. The map with entry infos should be filled with provider specific information that is required in later processing to sucessfully generate the fetch script.


Parameters:
  rawEntry - the arguments as specified in the map file (may not be null).
Parameters:
  overrideTags - a key / value containing all the override tags specified for all the repository (maybe null or empty). The values of this map of this are read from the fetchTag property (see file scripts/templates/headless-build/build.properties).
Parameters:
  entryInfos - the map to store repository specific information derived from the rawEntry.This object is being passed as arguments to the other methods of the factory. The factories are also expected to set IFetchFactory.KEY_ELEMENT_TAG to indicate the tag that will be used to fetch the element. This value is for example used to generate the "qualifier" value of a version number. Note that IFetchFactory.KEY_ELEMENT_NAME and IFetchFactory.KEY_ELEMENT_TYPE are reserved entries whose values respectively refer to the name of the element being fetched and its type.
throws:
  CoreException - if the rawEntry is incorrect.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.