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(java.lang.Class<T> extensionClass)
Gets the
ArchiveFormat for the given type from the extensionMapping |
<X extends Archive<X>> |
Archive.getAsType(java.lang.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(java.lang.Class<X> type,
ArchivePath path,
ArchiveFormat archiveFormat)
|
<X extends Archive<X>> |
Archive.getAsType(java.lang.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(java.lang.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(java.lang.Class<X> type,
java.lang.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(java.lang.Class<X> type,
java.lang.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,
java.lang.Class<? extends StreamExporter> exporter)
Add an archive under a specific context and maintain the archive name as context path.
|
T |
Archive.add(Archive<?> archive,
java.lang.String path,
java.lang.Class<? extends StreamExporter> exporter)
Add an archive under a specific context and maintain the archive name as context path.
|
<T extends Assignable> |
ExtensionLoader.load(java.lang.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,
java.lang.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,
java.lang.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 | Field and Description |
---|---|
private Archive<?> |
ArchiveAsset.archive
The archive this asset represents
|
Modifier and Type | Method and Description |
---|---|
Archive<?> |
ArchiveAsset.getArchive()
Returns the archive this asset represents
|
Constructor and Description |
---|
ArchiveAsset(Archive<?> archive,
java.lang.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() . |
Modifier and Type | Method and Description |
---|---|
private void |
ShrinkWrapClassLoader.addArchive(Archive<?> archive) |
private void |
ShrinkWrapClassLoader.addArchives(Archive<?>[] archives) |
Constructor and Description |
---|
ShrinkWrapClassLoader(Archive<?>... archives)
Constructs a new ShrinkWrapClassLoader for the specified
Archive s using the default delegation parent
ClassLoader . |
ShrinkWrapClassLoader(java.lang.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(java.util.Collection<? extends Archive<?>> archives)
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
Formatters.format(Archive<?> archive)
Returns a formatted view of the specified archive
|
java.lang.String |
SimpleFormatter.format(Archive<?> archive) |
java.lang.String |
VerboseFormatter.format(Archive<?> archive) |
java.lang.String |
Formatter.format(Archive<?> archive)
Returns a formatted view of the specified archive
|
private int |
SimpleFormatter.getNumAssets(Archive<?> archive)
Returns the number of assets on an
Archive . |
Modifier and Type | Method and Description |
---|---|
static java.net.URI |
ShrinkWrapFileSystems.getRootUri(Archive<?> archive)
Constructs a new
URI with the form:
shrinkwrap://{archive.getId()}/ |
static java.nio.file.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 | Field and Description |
---|---|
private T |
AssignableBase.archive
Underlying archive
|
Modifier and Type | Method and Description |
---|---|
<T extends Archive<T>> |
ServiceExtensionLoader.getArchiveFormatFromExtensionMapping(java.lang.Class<T> type)
Gets the
ArchiveFormat for the given type from the extensionMapping |
<X extends Archive<X>> |
ArchiveBase.getAsType(java.lang.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(java.lang.Class<X> type,
ArchivePath path,
ArchiveFormat archiveFormat)
|
<X extends Archive<X>> |
ArchiveBase.getAsType(java.lang.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(java.lang.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(java.lang.Class<X> type,
java.lang.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(java.lang.Class<X> type,
java.lang.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,
java.lang.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,
java.lang.Class<? extends StreamExporter> exporter)
Add an archive under a specific context and maintain the archive name as context path.
|
T |
MemoryMapArchiveBase.add(Archive<?> archive,
java.lang.String path,
java.lang.Class<? extends StreamExporter> exporter)
Add an archive under a specific context and maintain the archive name as context path.
|
private <T extends Assignable> |
ServiceExtensionLoader.createExtension(java.lang.Class<T> extensionImplClass,
Archive<?> archive)
Creates an instance of
extensionImplClass using archive as the parameter for its
one-argument list constructor. |
private <T extends Assignable> |
ServiceExtensionLoader.createFromCache(java.lang.Class<T> extensionClass,
Archive<?> archive) |
private <T extends Assignable> |
ServiceExtensionLoader.createFromLoadExtension(java.lang.Class<T> extensionClass,
Archive<?> archive)
Creates a new instance of a
extensionClass implementation. |
<T extends Assignable> |
ServiceExtensionLoader.load(java.lang.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,
java.lang.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,
java.lang.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(java.lang.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(java.lang.Class<X> type,
ArchivePath path,
ArchiveFormat archiveCompression)
|
<X extends Archive<X>> |
ContainerBase.getAsType(java.lang.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(java.lang.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(java.lang.Class<X> type,
java.lang.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(java.lang.Class<X> type,
java.lang.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,
java.lang.Class<? extends StreamExporter> exporter)
Add an archive under a specific context and maintain the archive name as context path.
|
T |
ContainerBase.add(Archive<?> archive,
java.lang.String path,
java.lang.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,
java.lang.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,
java.lang.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(java.util.Collection<? extends Archive<?>> archives)
|
Constructor and Description |
---|
ContainerBase(java.lang.Class<T> actualType,
Archive<?> archive) |
EnterpriseContainerBase(java.lang.Class<T> actualType,
Archive<?> archive) |
ResourceAdapterContainerBase(java.lang.Class<T> actualType,
Archive<?> archive) |
WebContainerBase(java.lang.Class<T> actualType,
Archive<?> archive) |
Modifier and Type | Field and Description |
---|---|
private Archive<?> |
AbstractExporterDelegate.archive
The archive being exported
|
Modifier and Type | Method and Description |
---|---|
protected Archive<?> |
AbstractExporterDelegate.getArchive()
Return the archive being exported
|
Modifier and Type | Method and Description |
---|---|
private java.io.File |
ExplodedExporterImpl.export(Archive<?> archive,
java.io.File outputDirectory) |
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,
java.io.File outputDirectory)
Creates a new exploded exporter delegate for the provided
Archive |
ExplodedExporterImpl(Archive<?> archive) |
Constructor and Description |
---|
TarBz2ExporterDelegate(Archive<?> archive) |
TarBz2ExporterImpl(Archive<?> archive)
Creates a new exporter for the specified archive
|
TarBz2OnDemandInputStream(Archive<?> archive)
Creates stream directly from archive.
|
TarExporterDelegate(Archive<?> archive)
Creates a new exporter delegate for exporting archives as TAR
|
TarExporterImpl(Archive<?> archive)
Creates a new exporter for the specified archive
|
TarGzExporterDelegate(Archive<?> archive) |
TarGzExporterImpl(Archive<?> archive)
Creates a new exporter for the specified archive
|
TarGzOnDemandInputStream(Archive<?> archive)
Creates stream directly from archive.
|
TarOnDemandInputStream(Archive<?> archive)
Creates stream directly from archive.
|
TarOnDemandInputStreamBase(Archive<?> archive)
Creates stream directly from archive.
|
Constructor and Description |
---|
ZipExporterDelegate(Archive<?> archive) |
ZipExporterImpl(Archive<?> archive) |
ZipOnDemandInputStream(Archive<?> archive)
Creates stream directly from archive.
|
Constructor and Description |
---|
ExplodedImporterImpl(Archive<?> archive) |
Constructor and Description |
---|
TarBz2ImporterImpl(Archive<?> archive) |
TarGzImporterImpl(Archive<?> archive) |
TarImporterBase(Archive<?> archive) |
TarImporterImpl(Archive<?> archive) |
Constructor and Description |
---|
ZipImporterImpl(Archive<?> archive) |
Modifier and Type | Field and Description |
---|---|
private Archive<?> |
ZipSerializableViewImpl.archive
Underlying 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.
|
Modifier and Type | Field and Description |
---|---|
private Archive<?> |
ShrinkWrapFileAttributes.archive |
private Archive<?> |
ShrinkWrapFileSystem.archive
Underlying
Archive |
private Archive<?> |
ShrinkWrapFileStore.archive
Underlying archive
|
Modifier and Type | Method and Description |
---|---|
private Archive<?> |
ShrinkWrapFileAttributes.getArchive() |
(package private) Archive<?> |
ShrinkWrapFileSystem.getArchive()
Obtains the underlying archive
|
private Archive<?> |
ShrinkWrapFileSystemProvider.getArchive(java.nio.file.Path path)
Obtains the underlying archive associated with the specified Path
|
Constructor and Description |
---|
ShrinkWrapFileAttributes(ShrinkWrapPath path,
Archive<?> archive) |
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.
|