org.jboss.shrinkwrap.api
Class ArchiveFactory

java.lang.Object
  extended by org.jboss.shrinkwrap.api.ArchiveFactory

public final class ArchiveFactory
extends Object

Version:
$Revision: $
Author:
ALR

Method Summary
<T extends Assignable>
T
create(String archiveName, Class<T> type)
          Creates a new archive of the specified type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public <T extends Assignable> T create(String archiveName,
                                       Class<T> type)
                            throws IllegalArgumentException
Creates a new archive of the specified type. The archive will be be backed by the Configuration specific to this ArchiveFactory.

Parameters:
archiveName - The name of the archive
Returns:
An Assignable archive base
Throws:
IllegalArgumentException - If either argument is not specified


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