org.jboss.shrinkwrap.api.container
Interface DirectoryContainer<T extends Archive<T>>

All Known Subinterfaces:
EnterpriseArchive, JavaArchive, ResourceAdapterArchive, WebArchive

public interface DirectoryContainer<T extends Archive<T>>

Defines the contract for a component capable of storing empty directories.

Version:
$Revision: $
Author:
Aslak Knutsen

Method Summary
 T addDirectories(ArchivePath... paths)
          Adds the specified directory to the Archive.
 T addDirectories(String... paths)
          Adds the specified directory to the Archive.
 T addDirectory(ArchivePath path)
          Adds the specified directory to the Archive.
 T addDirectory(String path)
          Adds the specified directory to the Archive.
 

Method Detail

addDirectory

T addDirectory(String path)
                                  throws IllegalArgumentException
Adds the specified directory to the Archive.

Parameters:
path - The path to add
Returns:
This archive
Throws:
IllegalArgumentException - If no path was specified

addDirectories

T addDirectories(String... paths)
                                    throws IllegalArgumentException
Adds the specified directory to the Archive.

Parameters:
paths - The paths to add
Returns:
This archive
Throws:
IllegalArgumentException - If no paths were specified

addDirectory

T addDirectory(ArchivePath path)
                                  throws IllegalArgumentException
Adds the specified directory to the Archive.

Parameters:
path - The path to add
Returns:
This archive
Throws:
IllegalArgumentException - If no path was specified

addDirectories

T addDirectories(ArchivePath... paths)
                                    throws IllegalArgumentException
Adds the specified directory to the Archive.

Parameters:
paths - The paths to add
Returns:
This archive
Throws:
IllegalArgumentException - If no paths were specified


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.