Modifier and Type | Interface and Description |
---|---|
interface |
Archive<T extends Archive<T>>
Represents a collection of resources which may be constructed programmatically.
|
Modifier and Type | Interface and Description |
---|---|
interface |
GenericArchive
Simple
Archive extension which closes the generic context as a convenience to users not requiring any spec
archive type. |
Modifier and Type | Method and Description |
---|---|
<T extends Archive<T>> |
ExtensionLoader.getArchiveFormatFromExtensionMapping(Class<T> extensionClass)
Gets the
ArchiveFormat for the given type from the extensionMapping |
<X extends Archive<X>> |
Archive.getAsType(Class<X> type,
ArchivePath path)
Get a nested
Archive as a specific type.The found Archives must have been added as a Archive, no import is performed. |
<X extends Archive<X>> |
Archive.getAsType(Class<X> type,
ArchivePath path,
ArchiveFormat archiveFormat)
|
<X extends Archive<X>> |
Archive.getAsType(Class<X> type,
Filter<ArchivePath> filter)
Get all nested
Archive matching the filter as a specific type.The found Archives must have been added as a Archive, no import is performed. |
<X extends Archive<X>> |
Archive.getAsType(Class<X> type,
Filter<ArchivePath> filter,
ArchiveFormat archiveFormat)
Get all nested
Archive matching the filter as a specific type using the specify ArchiveFormat . |
<X extends Archive<X>> |
Archive.getAsType(Class<X> type,
String path)
Get a nested
Archive as a specific type.The found Archives must have been added as a Archive, no import is performed. |
<X extends Archive<X>> |
Archive.getAsType(Class<X> type,
String path,
ArchiveFormat archiveFormat)
Get a nested
Archive as a specific type using the specify ArchiveFormat |
Modifier and Type | Method and Description |
---|---|
Archive<T> |
Archive.shallowCopy()
Creates a shallow copy of this
Archive . |
Archive<T> |
Archive.shallowCopy(Filter<ArchivePath> filter)
Creates a shallow copy of this
Archive based on given filter.Assets from this archive are made available
under the same paths. |
Modifier and Type | Method and Description |
---|---|
T |
Archive.add(Archive<?> archive,
ArchivePath path,
Class<? extends StreamExporter> exporter)
Add an archive under a specific context and maintain the archive name as context path.
|
T |
Archive.add(Archive<?> archive,
String path,
Class<? extends StreamExporter> exporter)
Add an archive under a specific context and maintain the archive name as context path.
|
<T extends Assignable> |
ExtensionLoader.load(Class<T> extensionClass,
Archive<?> baseArchive)
Load a Extension.
|
T |
Archive.merge(Archive<?> source)
Merge the contents from an existing archive without maintaining the archive name in the context path.
|
T |
Archive.merge(Archive<?> source,
ArchivePath path)
Merge the contents from an existing archive in a specific path without maintaining the archive name in the
context path.
|
T |
Archive.merge(Archive<?> source,
ArchivePath path,
Filter<ArchivePath> filter)
Merge the contents from an existing archive in a specific path without maintaining the archive name in the
context path.
|
T |
Archive.merge(Archive<?> source,
Filter<ArchivePath> filter)
Merge the contents from an existing archive without maintaining the archive name in the context path.
|
T |
Archive.merge(Archive<?> source,
String path)
Merge the contents from an existing archive in a specific path without maintaining the archive name in the
context path.
|
T |
Archive.merge(Archive<?> source,
String path,
Filter<ArchivePath> filter)
Merge the contents from an existing archive in a specific path without maintaining the archive name in the
context path.
|
Modifier and Type | Method and Description |
---|---|
Archive<?> |
ArchiveAsset.getArchive()
Returns the archive this asset represents
|
Constructor and Description |
---|
ArchiveAsset(Archive<?> archive,
Class<? extends StreamExporter> exporter)
Creates a new instance wrapping the specified
Archive , which will use the specified
StreamExporter to represent the archive as an InputStream in Asset.openStream() . |
Constructor and Description |
---|
ShrinkWrapClassLoader(Archive<?>... archives)
Constructs a new ShrinkWrapClassLoader for the specified
Archive s using the default delegation parent
ClassLoader . |
ShrinkWrapClassLoader(ClassLoader parent,
Archive<?>... archives)
Constructs a new ShrinkWrapClassLoader for the given
Archive s. |
Modifier and Type | Interface and Description |
---|---|
interface |
ClassContainer<T extends Archive<T>>
Defines the contract for a component capable of storing Java Classes.
|
interface |
EnterpriseContainer<T extends Archive<T>>
Defines the contract for a component capable of storing Enterprise related resources.
|
interface |
LibraryContainer<T extends Archive<T>>
Defines the contract for a component capable of storing Libraries.
|
interface |
ManifestContainer<T extends Archive<T>>
Defines the contract for a component capable of storing Manifest related resources.
|
interface |
ResourceAdapterContainer<T extends Archive<T>>
Defines the contract for a component capable of storing Resource adapter resources.
|
interface |
ResourceContainer<T extends Archive<T>>
Defines the contract for a component capable of storing a series of
ClassLoader , File , and
URL -based Assets as resources within an archive. |
interface |
ServiceProviderContainer<T extends Archive<T>>
Defines the contract for a component capable of storing service provider related resources.
|
interface |
WebContainer<T extends Archive<T>>
Defines the contract for a component capable of storing web-related resources.
|
Modifier and Type | Method and Description |
---|---|
T |
LibraryContainer.addAsLibraries(Archive<?>... archives)
|
T |
LibraryContainer.addAsLibraries(Archive<?>[]... archives)
|
T |
LibraryContainer.addAsLibrary(Archive<?> archive)
|
T |
EnterpriseContainer.addAsModule(Archive<?> archive)
Adds a archive to this
Archive s module context. |
T |
EnterpriseContainer.addAsModules(Archive<?>... archives)
Adds the specified archives to this
Archive s module context. |
Modifier and Type | Method and Description |
---|---|
T |
LibraryContainer.addAsLibraries(Collection<? extends Archive<?>> archives)
|
Modifier and Type | Method and Description |
---|---|
String |
Formatter.format(Archive<?> archive)
Returns a formatted view of the specified archive
|
String |
Formatters.format(Archive<?> archive)
Returns a formatted view of the specified archive
|
Modifier and Type | Method and Description |
---|---|
static URI |
ShrinkWrapFileSystems.getRootUri(Archive<?> archive)
Constructs a new
URI with the form:
shrinkwrap://{archive.getId()}/ |
static FileSystem |
ShrinkWrapFileSystems.newFileSystem(Archive<?> archive)
Creates a new file system for the given
Archive ; in effect invoking this method is equal to invoking
FileSystems.newFileSystem(URI, Map) , passing the value of
ShrinkWrapFileSystems.getRootUri(Archive) as the URI and the specified archive as a value in a
Map under the key ShrinkWrapFileSystems.FS_ENV_KEY_ARCHIVE |
Modifier and Type | Interface and Description |
---|---|
interface |
EnterpriseArchive
Traditional EAR (Java Enterprise Archive) structure.
|
interface |
JavaArchive
Traditional JAR (Java Archive) structure.
|
interface |
ResourceAdapterArchive
Traditional RAR (Resource Adapter Archive) structure.
|
interface |
WebArchive
Traditional WAR (Java Web Archive) structure.
|
Modifier and Type | Class and Description |
---|---|
class |
ArchiveBase<T extends Archive<T>>
Base implementation of
Archive . |
class |
AssignableBase<T extends Archive<?>>
A generic implementation of
Assignable that delegates down to the Archive extensions inner archive. |
class |
MemoryMapArchiveBase<T extends Archive<T>>
MemoryMapArchiveBase
A base implementation for all MemoryMap archives.
|
Modifier and Type | Class and Description |
---|---|
class |
ArchiveBase<T extends Archive<T>>
Base implementation of
Archive . |
class |
GenericArchiveImpl
Implementation of a
GenericArchive |
class |
MemoryMapArchiveBase<T extends Archive<T>>
MemoryMapArchiveBase
A base implementation for all MemoryMap archives.
|
class |
MemoryMapArchiveImpl
MemoryMapArchiveImpl
A default implementation for all MemoryMap archives.
|
Modifier and Type | Method and Description |
---|---|
<T extends Archive<T>> |
ServiceExtensionLoader.getArchiveFormatFromExtensionMapping(Class<T> type)
Gets the
ArchiveFormat for the given type from the extensionMapping |
<X extends Archive<X>> |
ArchiveBase.getAsType(Class<X> type,
ArchivePath path)
Get a nested
Archive as a specific type.The found Archives must have been added as a Archive, no import is performed. |
<X extends Archive<X>> |
ArchiveBase.getAsType(Class<X> type,
ArchivePath path,
ArchiveFormat archiveFormat)
|
<X extends Archive<X>> |
ArchiveBase.getAsType(Class<X> type,
Filter<ArchivePath> filter)
Get all nested
Archive matching the filter as a specific type.The found Archives must have been added as a Archive, no import is performed. |
<X extends Archive<X>> |
ArchiveBase.getAsType(Class<X> type,
Filter<ArchivePath> filter,
ArchiveFormat archiveFormat)
Get all nested
Archive matching the filter as a specific type using the specify ArchiveFormat . |
<X extends Archive<X>> |
ArchiveBase.getAsType(Class<X> type,
String path)
Get a nested
Archive as a specific type.The found Archives must have been added as a Archive, no import is performed. |
<X extends Archive<X>> |
ArchiveBase.getAsType(Class<X> type,
String path,
ArchiveFormat archiveFormat)
Get a nested
Archive as a specific type using the specify ArchiveFormat |
Modifier and Type | Method and Description |
---|---|
Archive<T> |
ArchiveBase.shallowCopy()
Creates a shallow copy of this
Archive . |
Archive<T> |
ArchiveBase.shallowCopy(Filter<ArchivePath> filter)
Creates a shallow copy of this
Archive based on given filter.Assets from this archive are made available
under the same paths. |
Modifier and Type | Method and Description |
---|---|
T |
ArchiveBase.add(Archive<?> archive,
ArchivePath path,
Class<? extends StreamExporter> exporter)
Add an archive under a specific context and maintain the archive name as context path.
|
T |
MemoryMapArchiveBase.add(Archive<?> archive,
ArchivePath path,
Class<? extends StreamExporter> exporter)
Add an archive under a specific context and maintain the archive name as context path.
|
T |
MemoryMapArchiveBase.add(Archive<?> archive,
String path,
Class<? extends StreamExporter> exporter)
Add an archive under a specific context and maintain the archive name as context path.
|
<T extends Assignable> |
ServiceExtensionLoader.load(Class<T> extensionClass,
Archive<?> baseArchive)
Load a Extension.
|
T |
ArchiveBase.merge(Archive<?> source)
Merge the contents from an existing archive without maintaining the archive name in the context path.
|
T |
ArchiveBase.merge(Archive<?> source,
ArchivePath path)
Merge the contents from an existing archive in a specific path without maintaining the archive name in the
context path.
|
T |
ArchiveBase.merge(Archive<?> source,
ArchivePath path,
Filter<ArchivePath> filter)
Merge the contents from an existing archive in a specific path without maintaining the archive name in the
context path.
|
T |
ArchiveBase.merge(Archive<?> source,
Filter<ArchivePath> filter)
Merge the contents from an existing archive without maintaining the archive name in the context path.
|
T |
ArchiveBase.merge(Archive<?> source,
String path)
Merge the contents from an existing archive in a specific path without maintaining the archive name in the
context path.
|
T |
ArchiveBase.merge(Archive<?> source,
String path,
Filter<ArchivePath> filter)
Merge the contents from an existing archive in a specific path without maintaining the archive name in the
context path.
|
Constructor and Description |
---|
GenericArchiveImpl(Archive<?> delegate)
Creates a new instance
|
Modifier and Type | Class and Description |
---|---|
class |
ContainerBase<T extends Archive<T>>
ContainerBase
Abstract class that helps implement the Archive, ManifestContainer, ResourceContainer, ClassContainer and
LibraryContainer.
|
class |
EnterpriseContainerBase<T extends Archive<T>>
EnterpriseContainerSupport
Abstract class that helps implement the EnterpriseContainer.
|
class |
ResourceAdapterContainerBase<T extends Archive<T>>
ResourceAdapterContainerBase
Abstract class that helps implement the ResourceAdapter.
|
class |
WebContainerBase<T extends Archive<T>>
WebContainerBase
Abstract class that helps implement the WebContainer.
|
Modifier and Type | Class and Description |
---|---|
class |
ContainerBase<T extends Archive<T>>
ContainerBase
Abstract class that helps implement the Archive, ManifestContainer, ResourceContainer, ClassContainer and
LibraryContainer.
|
class |
EnterpriseContainerBase<T extends Archive<T>>
EnterpriseContainerSupport
Abstract class that helps implement the EnterpriseContainer.
|
class |
ResourceAdapterContainerBase<T extends Archive<T>>
ResourceAdapterContainerBase
Abstract class that helps implement the ResourceAdapter.
|
class |
WebContainerBase<T extends Archive<T>>
WebContainerBase
Abstract class that helps implement the WebContainer.
|
Modifier and Type | Method and Description |
---|---|
<X extends Archive<X>> |
ContainerBase.getAsType(Class<X> type,
ArchivePath path)
Get a nested
Archive as a specific type.The found Archives must have been added as a Archive, no import is performed. |
<X extends Archive<X>> |
ContainerBase.getAsType(Class<X> type,
ArchivePath path,
ArchiveFormat archiveCompression)
|
<X extends Archive<X>> |
ContainerBase.getAsType(Class<X> type,
Filter<ArchivePath> filter)
Get all nested
Archive matching the filter as a specific type.The found Archives must have been added as a Archive, no import is performed. |
<X extends Archive<X>> |
ContainerBase.getAsType(Class<X> type,
Filter<ArchivePath> filter,
ArchiveFormat archiveCompression)
Get all nested
Archive matching the filter as a specific type using the specify ArchiveFormat . |
<X extends Archive<X>> |
ContainerBase.getAsType(Class<X> type,
String path)
Get a nested
Archive as a specific type.The found Archives must have been added as a Archive, no import is performed. |
<X extends Archive<X>> |
ContainerBase.getAsType(Class<X> type,
String path,
ArchiveFormat archiveCompression)
Get a nested
Archive as a specific type using the specify ArchiveFormat |
Modifier and Type | Method and Description |
---|---|
Archive<T> |
ContainerBase.shallowCopy()
Creates a shallow copy of this
Archive . |
Archive<T> |
ContainerBase.shallowCopy(Filter<ArchivePath> filter)
Creates a shallow copy of this
Archive based on given filter.Assets from this archive are made available
under the same paths. |
Modifier and Type | Method and Description |
---|---|
T |
ContainerBase.add(Archive<?> archive,
ArchivePath path,
Class<? extends StreamExporter> exporter)
Add an archive under a specific context and maintain the archive name as context path.
|
T |
ContainerBase.add(Archive<?> archive,
String path,
Class<? extends StreamExporter> exporter)
Add an archive under a specific context and maintain the archive name as context path.
|
T |
ContainerBase.addAsLibraries(Archive<?>... archives) |
T |
ContainerBase.addAsLibraries(Archive<?>[]... archives)
|
T |
ContainerBase.addAsLibrary(Archive<?> archive)
|
T |
EnterpriseContainerBase.addAsModule(Archive<?> archive)
Adds a archive to this
Archive s module context. |
T |
EnterpriseContainerBase.addAsModules(Archive<?>... archives)
Adds the specified archives to this
Archive s module context. |
T |
ContainerBase.merge(Archive<?> source)
Merge the contents from an existing archive without maintaining the archive name in the context path.
|
T |
ContainerBase.merge(Archive<?> source,
ArchivePath path)
Merge the contents from an existing archive in a specific path without maintaining the archive name in the
context path.
|
T |
ContainerBase.merge(Archive<?> source,
ArchivePath path,
Filter<ArchivePath> filter)
Merge the contents from an existing archive in a specific path without maintaining the archive name in the
context path.
|
T |
ContainerBase.merge(Archive<?> source,
Filter<ArchivePath> filter)
Merge the contents from an existing archive without maintaining the archive name in the context path.
|
T |
ContainerBase.merge(Archive<?> source,
String path)
Merge the contents from an existing archive in a specific path without maintaining the archive name in the
context path.
|
T |
ContainerBase.merge(Archive<?> source,
String path,
Filter<ArchivePath> filter)
Merge the contents from an existing archive in a specific path without maintaining the archive name in the
context path.
|
Modifier and Type | Method and Description |
---|---|
T |
ContainerBase.addAsLibraries(Collection<? extends Archive<?>> archives)
|
Constructor and Description |
---|
ContainerBase(Class<T> actualType,
Archive<?> archive) |
EnterpriseContainerBase(Class<T> actualType,
Archive<?> archive) |
ResourceAdapterContainerBase(Class<T> actualType,
Archive<?> archive) |
WebContainerBase(Class<T> actualType,
Archive<?> archive) |
Modifier and Type | Method and Description |
---|---|
protected Archive<?> |
AbstractExporterDelegate.getArchive()
Return the archive being exported
|
Constructor and Description |
---|
AbstractExporterDelegate(Archive<?> archive)
Creates a new abstract exporter delegate for the provided
Archive |
AbstractOnDemandInputStream(Archive<?> archive)
Creates stream directly from archive.
|
AbstractStreamExporterImpl(Archive<?> archive) |
ExplodedExporterDelegate(Archive<?> archive,
File outputDirectory)
Creates a new exploded exporter delegate for the provided
Archive |
ExplodedExporterImpl(Archive<?> archive) |
Constructor and Description |
---|
TarBz2ExporterImpl(Archive<?> archive)
Creates a new exporter for the specified archive
|
TarExporterImpl(Archive<?> archive)
Creates a new exporter for the specified archive
|
TarGzExporterImpl(Archive<?> archive)
Creates a new exporter for the specified archive
|
Constructor and Description |
---|
ZipExporterImpl(Archive<?> archive) |
Constructor and Description |
---|
ExplodedImporterImpl(Archive<?> archive) |
Constructor and Description |
---|
TarBz2ImporterImpl(Archive<?> archive) |
TarGzImporterImpl(Archive<?> archive) |
TarImporterImpl(Archive<?> archive) |
Constructor and Description |
---|
ZipImporterImpl(Archive<?> archive) |
Constructor and Description |
---|
ZipSerializableViewImpl(Archive<?> archive)
Creates a new instance, wrapping the specified
Archive |
Modifier and Type | Class and Description |
---|---|
class |
EnterpriseArchiveImpl
EnterpriseArchiveImpl
|
class |
JavaArchiveImpl
Implementation of an archive with JAR-specific support.
|
class |
ResourceAdapterArchiveImpl
ResourceAdapterArchiveImpl
|
class |
WebArchiveImpl
WebArchiveImpl
|
Constructor and Description |
---|
EnterpriseArchiveImpl(Archive<?> delegate)
Create a new EnterpriseArchive with any type storage engine as backing.
|
JavaArchiveImpl(Archive<?> delegate)
Create a new JavaArchive with any type storage engine as backing.
|
ResourceAdapterArchiveImpl(Archive<?> delegate)
Create a new ResourceAdapterArchive with any type storage engine as backing.
|
WebArchiveImpl(Archive<?> delegate)
Create a new WebArchive with any type storage engine as backing.
|
Constructor and Description |
---|
ShrinkWrapFileStore(Archive<?> archive) |
ShrinkWrapFileSystem(ShrinkWrapFileSystemProvider provider,
Archive<?> archive) |
Modifier and Type | Interface and Description |
---|---|
interface |
MemoryMapArchive
MemoryMapArchive
A pure in memory Archive backed by a Map.
|
Copyright © 2016 JBoss by Red Hat. All rights reserved.