|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.internal.embedded.ScatteredArchive.Builder
public static class ScatteredArchive.Builder
| Nested Class Summary | |
|---|---|
static class |
ScatteredArchive.Builder.type
Supported types of scattered archives. |
| Constructor Summary | |
|---|---|
ScatteredArchive.Builder(String name,
Collection<URL> urls)
Construct a new scattered archive builder with a set of URLs as repository for locating archive resources (like .class files). |
|
ScatteredArchive.Builder(String name,
File topDir)
Construct a new scattered archive builder with the minimum information By default, a scattered archive is not different from any other archive where all the files are located under a top level directory (topDir). |
|
| Method Summary | |
|---|---|
ScatteredArchive.Builder |
addClassPath(File location)
Adds a directory to the classes classpath. |
ScatteredArchive.Builder |
addClassPath(URL classpath)
Adds a URL for the classes classpath. |
ScatteredArchive.Builder |
addMetadata(File metadata)
Add a new metadata locator for this scattered archive. |
ScatteredArchive.Builder |
addMetadata(String name,
File metadata)
Add a new metadata locator for this scattered archive. |
ScatteredArchive |
buildJar()
Creates a new scattered jar file using this builder instance configuration. |
ScatteredArchive |
buildWar()
Creates a new scattered war file using this builder instance configuration. |
ScatteredArchive.Builder |
resources(File resources)
Sets the location of resources files |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScatteredArchive.Builder(String name,
File topDir)
name - archive nametopDir - top level directory
public ScatteredArchive.Builder(String name,
Collection<URL> urls)
name - archive nameurls - set of resources repository| Method Detail |
|---|
public ScatteredArchive.Builder resources(File resources)
resources - the resources directory
public ScatteredArchive.Builder addMetadata(File metadata)
metadata - the metadata file location
public ScatteredArchive.Builder addMetadata(String name,
File metadata)
name - name of the metadata (eg WEB-INF/web.xml or web.xml or META-INF/ejb.xml
or ejb.xml).metadata - the metadata file location
public ScatteredArchive.Builder addClassPath(File location)
location - must be a directory location
public ScatteredArchive.Builder addClassPath(URL classpath)
classpath - the new classpath element.
public ScatteredArchive buildJar()
public ScatteredArchive buildWar()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||