Java Doc for Repository.java in  » Code-Analyzer » apache-ivy » org » apache » ivy » plugins » repository » 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 » Code Analyzer » apache ivy » org.apache.ivy.plugins.repository 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.ivy.plugins.repository.Repository

All known Subclasses:   org.apache.ivy.plugins.repository.AbstractRepository,
Repository
public interface Repository (Code)
Represents a collection of resources available to Ivy. Ivy uses one or more repositories as both a source of resources for Ivy enabled build systems and as a distribution center for resources generated by Ivy enabled build systems.

A repository supports the following fundamental operations

  • retrieving a resource from the repository.
  • transfering a resource to the repository.
  • retrieving a listing of resources.

Resource Retrieval

Repository.get retrieves a resource specified by a provided identifier creating a new file .

resource Publication

Repository.put transfers a file to the repository.

resource Listing

Repository.list returns a listing of file like objects belonging to a specified parent directory.





Method Summary
 voidaddTransferListener(TransferListener listener)
     Add a listener to the repository.
 voidget(String source, File destination)
     Fetch a resource from the repository.
 StringgetFileSeparator()
     Get the repository's file separator string.
 StringgetName()
    
 ResourcegetResource(String source)
     Return the resource associated with a specified identifier.
 booleanhasTransferListener(TransferListener listener)
     Determine if a given listener is attached to the repository.
 Listlist(String parent)
     Return a listing of resources names
Parameters:
  parent - The parent directory from which to generate the listing.
 voidput(Artifact artifact, File source, String destination, boolean overwrite)
    
 voidremoveTransferListener(TransferListener listener)
    
 Stringstandardize(String source)
     Normalize a string.
Parameters:
  source - The string to normalize.



Method Detail
addTransferListener
void addTransferListener(TransferListener listener)(Code)
Add a listener to the repository.
Parameters:
  listener - The listener to attach to the repository.



get
void get(String source, File destination) throws IOException(Code)
Fetch a resource from the repository.
Parameters:
  source - A string identifying the resource to be fetched.
Parameters:
  destination - Where to place the fetched resource.
throws:
  IOException - On retrieval failure.



getFileSeparator
String getFileSeparator()(Code)
Get the repository's file separator string. The repository's file separator delimiter



getName
String getName()(Code)
Return the name of the repository



getResource
Resource getResource(String source) throws IOException(Code)
Return the resource associated with a specified identifier. If the resource does not exist, it should return a Resource with exists() returning false. An IOException should only be thrown when a real IO problem occurs, like the impossibility to connect to a server.
Parameters:
  source - A string identifying the resource. The resource associated with the resource identifier.
throws:
  IOException - On error whle trying to get resource.



hasTransferListener
boolean hasTransferListener(TransferListener listener)(Code)
Determine if a given listener is attached to the repository.
Parameters:
  listener - The listener being quireied true if the provided listener is attached to the repository,false if not.



list
List list(String parent) throws IOException(Code)
Return a listing of resources names
Parameters:
  parent - The parent directory from which to generate the listing. A listing of the parent directory's file content, as a List of String.
throws:
  IOException - On listing failure.



put
void put(Artifact artifact, File source, String destination, boolean overwrite) throws IOException(Code)
Transfer a resource to the repository
Parameters:
  artifact - The artifact to be transferred.
Parameters:
  source - The local file to be transferred.
Parameters:
  destination - Where to transfer the resource.
Parameters:
  overwrite - Whether the transfer should overwrite an existing resource.
throws:
  IOException - On publication failure.



removeTransferListener
void removeTransferListener(TransferListener listener)(Code)
Remove a listener on the repository
Parameters:
  listener - The listener to remove



standardize
String standardize(String source)(Code)
Normalize a string.
Parameters:
  source - The string to normalize. The normalized string.



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