Modifier and Type | Field and Description |
---|---|
private ArchivePath |
ArchiveEvent.path |
private ArchivePath |
ArchivePaths.RootPathWrapper.root |
Modifier and Type | Method and Description |
---|---|
static ArchivePath |
ArchivePaths.create(ArchivePath basePath,
ArchivePath context)
Creates a new
ArchivePath using the specified base and specified relative context. |
static ArchivePath |
ArchivePaths.create(ArchivePath basePath,
java.lang.String context)
Creates a new
ArchivePath using the specified base and specified relative context. |
static ArchivePath |
ArchivePaths.create(java.lang.String context)
Creates a new
ArchivePath with the specified context |
static ArchivePath |
ArchivePaths.create(java.lang.String basePath,
ArchivePath context)
Creates a new
ArchivePath using the specified base and specified relative context. |
static ArchivePath |
ArchivePaths.create(java.lang.String basePath,
java.lang.String context)
Creates a new
ArchivePath using the specified base and specified relative context. |
private static ArchivePath |
ArchivePaths.createInstance(java.lang.Class<?>[] argumentTypes,
java.lang.Object[] arguments) |
ArchivePath |
ArchivePath.getParent()
Obtains the parent of this Path, if exists, else null.
|
ArchivePath |
ArchiveEvent.getPath() |
ArchivePath |
Node.getPath() |
private ArchivePath |
ArchivePaths.RootPathWrapper.getRoot() |
static ArchivePath |
ArchivePaths.root()
Creates a new
ArchivePath representing the root path (/). |
Modifier and Type | Method and Description |
---|---|
private static Filter<ArchivePath> |
Filters.createRegExpFilter(java.lang.String regExpFilterImplName,
java.lang.Class<?>... classes) |
private static Filter<ArchivePath> |
Filters.createRegExpFilter(java.lang.String filterClassName,
java.lang.Package... packages) |
static Filter<ArchivePath> |
Filters.exclude(java.lang.Class<?>... classes)
Filter that excludes listed Class . |
static Filter<ArchivePath> |
Filters.exclude(java.lang.Package... packages)
Filter that includes listed Package . |
static Filter<ArchivePath> |
Filters.exclude(java.lang.String regexp)
|
static Filter<ArchivePath> |
Filters.excludePaths(java.util.Collection<java.lang.String> paths)
Filter that exclude all ArchivePath s that match the given List of paths. |
static Filter<ArchivePath> |
Filters.excludePaths(java.lang.String... paths)
Filter that exclude all ArchivePath s that match the given List of paths. |
java.util.Map<ArchivePath,Node> |
Archive.getContent()
Obtains all assets in this archive, along with their respective paths.
|
java.util.Map<ArchivePath,Node> |
Archive.getContent(Filter<ArchivePath> filter)
Obtains all assets matching given filter in this archive, along with its respective Path.
|
private static Filter<ArchivePath> |
Filters.getFilterInstance(java.lang.String filterClassName,
java.lang.Class<?>[] ctorTypes,
java.lang.Object[] ctorArguments)
Creates a new
Filter instance using the given impl class name, constructor arguments and type |
static Filter<ArchivePath> |
Filters.include(java.lang.Class<?>... classes)
Filter that includes listed Class . |
static Filter<ArchivePath> |
Filters.include(java.lang.Package... packages)
Filter that excludes listed Package . |
static Filter<ArchivePath> |
Filters.include(java.lang.String regexp)
|
static Filter<ArchivePath> |
Filters.includeAll()
Filter that includes all ArchivePath s. |
static Filter<ArchivePath> |
Filters.includePaths(java.util.Collection<java.lang.String> paths)
Filer that include all ArchivePath s that match the given List of paths.. |
static Filter<ArchivePath> |
Filters.includePaths(java.lang.String... paths)
Filer that include all ArchivePath s that match the given List of 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(Asset asset,
ArchivePath target)
Adds the specified asset under the specified path into the target context
|
T |
Archive.add(Asset asset,
ArchivePath target,
java.lang.String name)
Adds the specified asset under the specified target (directory) using the specified name.
|
T |
Archive.addAsDirectories(ArchivePath... paths)
Adds the specified directories.
|
T |
Archive.addAsDirectory(ArchivePath path)
Adds the specified directory.
|
boolean |
Archive.contains(ArchivePath path)
Denotes whether this archive contains a resource at the specified path
|
static ArchivePath |
ArchivePaths.create(ArchivePath basePath,
ArchivePath context)
Creates a new
ArchivePath using the specified base and specified relative context. |
static ArchivePath |
ArchivePaths.create(ArchivePath basePath,
java.lang.String context)
Creates a new
ArchivePath using the specified base and specified relative context. |
static ArchivePath |
ArchivePaths.create(java.lang.String basePath,
ArchivePath context)
Creates a new
ArchivePath using the specified base and specified relative context. |
Node |
Archive.delete(ArchivePath path)
|
Node |
Archive.get(ArchivePath path)
Obtains the
Node located at the specified path |
<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)
|
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.move(ArchivePath source,
ArchivePath target)
Moves the asset under the source path to the target path.
|
Modifier and Type | Method and Description |
---|---|
T |
Archive.filter(Filter<ArchivePath> filter)
Obtains all assets matching given filter in this archive as a new Archive.
This is an alias for shallowCopy(Filter). |
<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 . |
java.util.Map<ArchivePath,Node> |
Archive.getContent(Filter<ArchivePath> filter)
Obtains all assets matching given filter in this archive, along with its respective 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,
Filter<ArchivePath> filter)
Merge the contents from an existing archive in a specific path without maintaining the archive name in the
context path.
|
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. |
Constructor and Description |
---|
ArchiveEvent(ArchivePath path,
Asset asset) |
Modifier and Type | Method and Description |
---|---|
T |
EnterpriseContainer.addAsApplicationResource(Asset resource,
ArchivePath target)
|
T |
EnterpriseContainer.addAsApplicationResource(java.io.File resource,
ArchivePath target)
Adds a
File to this Archive s application context. |
T |
EnterpriseContainer.addAsApplicationResource(java.lang.Package resourcePackage,
java.lang.String resourceName,
ArchivePath target)
Adds the resource as a resource to a specific path inside the container, returning the container itself.
|
T |
EnterpriseContainer.addAsApplicationResource(java.lang.String resourceName,
ArchivePath target)
Adds a resource to this
Archive s application context. |
T |
EnterpriseContainer.addAsApplicationResource(java.net.URL resource,
ArchivePath target)
Adds a
URL to this Archive s application context. |
T |
LibraryContainer.addAsLibrary(Asset resource,
ArchivePath target)
Adds the
Asset as a library to the container, returning the container itself. |
T |
LibraryContainer.addAsLibrary(java.io.File resource,
ArchivePath target)
Adds the
File as a library to the container, returning the container itself. |
T |
LibraryContainer.addAsLibrary(java.lang.String resourceName,
ArchivePath target)
Adds the resource as a library to the container, returning the container itself.
|
T |
LibraryContainer.addAsLibrary(java.net.URL resource,
ArchivePath target)
Adds the
URL as a library to the container, returning the container itself. |
T |
ManifestContainer.addAsManifestResource(Asset resource,
ArchivePath target)
Adds the
Asset as a Manifest resource to the container, returning the container itself. |
T |
ManifestContainer.addAsManifestResource(java.io.File resource,
ArchivePath target)
Adds the
File as a Manifest resource to the container, returning the container itself. |
T |
ManifestContainer.addAsManifestResource(java.lang.Package resourcePackage,
java.lang.String resourceName,
ArchivePath target)
Adds the resource as a resource to a specific path inside the container, returning the container itself.
|
T |
ManifestContainer.addAsManifestResource(java.lang.String resourceName,
ArchivePath target)
Adds the resource as a Manifest resource to the container, returning the container itself.
|
T |
ManifestContainer.addAsManifestResource(java.net.URL resource,
ArchivePath target)
Adds the
URL as a Manifest resource to the container, returning the container itself. |
T |
EnterpriseContainer.addAsModule(Asset resource,
ArchivePath targetPath)
|
T |
EnterpriseContainer.addAsModule(java.io.File resource,
ArchivePath targetPath)
Adds a
File to this Archive s module context. |
T |
EnterpriseContainer.addAsModule(java.lang.String resourceName,
ArchivePath targetPath)
Adds a resource to this
Archive s module context. |
T |
EnterpriseContainer.addAsModule(java.net.URL resource,
ArchivePath targetPath)
Adds a
URL to this Archive s module context. |
T |
ResourceContainer.addAsResource(Asset resource,
ArchivePath target)
Adds the
Asset as a resource to the container, returning the container itself. |
T |
ResourceContainer.addAsResource(java.io.File resource,
ArchivePath target)
Adds the
File as a resource to the container, returning the container itself. |
T |
ResourceContainer.addAsResource(java.lang.Package resourcePackage,
java.lang.String resourceName,
ArchivePath target)
Adds the resource as a resource to a specific path inside the container, returning the container itself.
|
T |
ResourceContainer.addAsResource(java.lang.String resourceName,
ArchivePath target)
Adds the resource with the specified name to the container, returning the container itself.
|
T |
ResourceContainer.addAsResource(java.lang.String resourceName,
ArchivePath target,
java.lang.ClassLoader classLoader)
Adds the resource as a resource to the container, returning the container itself.
|
T |
ResourceContainer.addAsResource(java.net.URL resource,
ArchivePath target)
Adds the
URL as a resource to the container, returning the container itself. |
T |
WebContainer.addAsWebInfResource(Asset resource,
ArchivePath target)
Adds the
Asset as a WEB-INF resource to the container, returning the container itself. |
T |
WebContainer.addAsWebInfResource(java.io.File resource,
ArchivePath target)
Adds the
File as a WEB-INF resource to the container, returning the container itself. |
T |
WebContainer.addAsWebInfResource(java.lang.Package resourcePackage,
java.lang.String resourceName,
ArchivePath target)
Adds the resource as a WEB-INF resource to a specific path inside the container, returning the container itself.
|
T |
WebContainer.addAsWebInfResource(java.lang.String resourceName,
ArchivePath target)
Adds the resource as a WEB-INF resource to the container, returning the container itself.
|
T |
WebContainer.addAsWebInfResource(java.net.URL resource,
ArchivePath target)
Adds the
URL as a WEB-INF resource to the container, returning the container itself. |
T |
WebContainer.addAsWebResource(Asset resource,
ArchivePath target)
Adds the
Asset as a Web resource to the container, returning the container itself. |
T |
WebContainer.addAsWebResource(java.io.File resource,
ArchivePath target)
Adds the
File as a Web resource to the container, returning the container itself. |
T |
WebContainer.addAsWebResource(java.lang.Package resourcePackage,
java.lang.String resourceName,
ArchivePath target)
Adds the resource as a resource to a specific path inside the container, returning the container itself.
|
T |
WebContainer.addAsWebResource(java.lang.String resourceName,
ArchivePath target)
Adds the resource as a Web resource to the container, returning the container itself.
|
T |
WebContainer.addAsWebResource(java.net.URL resource,
ArchivePath target)
Adds the
URL as a Web resource to the container, returning the container itself. |
Modifier and Type | Method and Description |
---|---|
T |
ClassContainer.addPackages(boolean recursive,
Filter<ArchivePath> filter,
java.lang.Package... packages)
Adds all classes accepted by the filter in the specified
Package s to the Archive . |
T |
ClassContainer.addPackages(boolean recursive,
Filter<ArchivePath> filter,
java.lang.String... packages)
Adds all classes accepted by the filter in the specified
Package s to the Archive . |
T |
ClassContainer.deletePackages(boolean recursive,
Filter<ArchivePath> filter,
java.lang.Package... packages)
Deletes all classes accepted by the filter in the specified
Package s from the Archive . |
T |
ClassContainer.deletePackages(boolean recursive,
Filter<ArchivePath> filter,
java.lang.String... packages)
Delete all classes accepted by the filter in the specified
Package s from the Archive . |
Modifier and Type | Method and Description |
---|---|
ExplodedImporter |
ExplodedImporter.importDirectory(java.io.File file,
Filter<ArchivePath> filter)
Import a directory structure as a archive.
|
ExplodedImporter |
ExplodedImporter.importDirectory(java.lang.String fileName,
Filter<ArchivePath> filter)
Import a directory structure as a archive.
|
I |
StreamImporter.importFrom(java.io.File file,
Filter<ArchivePath> filter)
Imports provided File as a
Archive . |
I |
StreamImporter.importFrom(java.io.InputStream stream,
Filter<ArchivePath> filter)
Imports provided stream as a
Archive . |
Constructor and Description |
---|
MemoryNamedAsset(ArchivePath path)
|
Modifier and Type | Field and Description |
---|---|
private ArchivePath |
NodeImpl.path
The path of this node inside the
Archive |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<ArchivePath,NodeImpl> |
MemoryMapArchiveBase.content
Storage for the
Node s. |
private java.util.Map<ArchivePath,ArchiveAsset> |
MemoryMapArchiveBase.nestedArchives
Storage for the
ArchiveAsset s. |
Modifier and Type | Method and Description |
---|---|
protected ArchivePath |
GenericArchiveImpl.getClassesPath()
Should be implemented to set the path for Class related resources.
|
protected ArchivePath |
GenericArchiveImpl.getLibraryPath()
Should be implemented to set the path for Library related resources.
|
protected ArchivePath |
GenericArchiveImpl.getManifestPath()
Should be implemented to set the path for Manifest related resources.
|
private ArchivePath |
MemoryMapArchiveBase.getNestedPath(ArchivePath fullPath,
ArchivePath basePath)
Given a full path and a base path return a new path containing the full path with the base path removed from the
beginning.
|
ArchivePath |
NodeImpl.getPath() |
protected ArchivePath |
GenericArchiveImpl.getResourcePath()
Should be implemented to set the path for Resource related resources.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<ArchivePath,Node> |
MemoryMapArchiveBase.getContent()
Obtains all assets in this archive, along with their respective paths.
|
java.util.Map<ArchivePath,Node> |
MemoryMapArchiveBase.getContent(Filter<ArchivePath> filter)
Obtains all assets matching given filter in this archive, along with its respective Path.
|
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(Asset asset,
ArchivePath path)
Adds the specified asset under the specified path into the target context
|
T |
ArchiveBase.add(Asset asset,
ArchivePath path,
java.lang.String name)
Adds the specified asset under the specified target (directory) using the specified name.
|
T |
ArchiveBase.addAsDirectories(ArchivePath... paths)
Adds the specified directories.
|
T |
MemoryMapArchiveBase.addAsDirectory(ArchivePath path)
Adds the specified directory.
|
private T |
MemoryMapArchiveBase.addAsset(ArchivePath path,
Asset asset) |
private void |
MemoryMapArchiveBase.addNewNode(ArchivePath path,
Asset handledAsset) |
boolean |
MemoryMapArchiveBase.contains(ArchivePath path)
Denotes whether this archive contains a resource at the specified path
|
Node |
MemoryMapArchiveBase.delete(ArchivePath path)
|
Node |
MemoryMapArchiveBase.get(ArchivePath path)
Obtains the
Node located at the specified path |
<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)
|
private Node |
MemoryMapArchiveBase.getNestedNode(ArchivePath path)
Attempt to get the asset from a nested archive.
|
private ArchivePath |
MemoryMapArchiveBase.getNestedPath(ArchivePath fullPath,
ArchivePath basePath)
Given a full path and a base path return a new path containing the full path with the base path removed from the
beginning.
|
private Asset |
MemoryMapArchiveBase.invokeHandlers(ArchivePath path,
Asset asset) |
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.move(ArchivePath source,
ArchivePath target)
Moves the asset under the source path to the target path.
|
private boolean |
MemoryMapArchiveBase.nestedContains(ArchivePath path)
Check to see if a path is found in a nested archive
|
private NodeImpl |
MemoryMapArchiveBase.obtainParent(ArchivePath path)
|
private Node |
MemoryMapArchiveBase.removeNodeRecursively(NodeImpl node,
ArchivePath path)
Removes the specified node and its associated children from the contents
of this archive.
|
private boolean |
MemoryMapArchiveBase.startsWith(ArchivePath fullPath,
ArchivePath startingPath)
Check to see if one path starts with another
|
Modifier and Type | Method and Description |
---|---|
T |
ArchiveBase.filter(Filter<ArchivePath> filter)
Obtains all assets matching given filter in this archive as a new Archive.
This is an alias for shallowCopy(Filter). |
<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 . |
java.util.Map<ArchivePath,Node> |
MemoryMapArchiveBase.getContent(Filter<ArchivePath> filter)
Obtains all assets matching given filter in this archive, along with its respective 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,
Filter<ArchivePath> filter)
Merge the contents from an existing archive in a specific path without maintaining the archive name in the
context path.
|
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. |
Constructor and Description |
---|
NodeImpl(ArchivePath path)
Constructor
This constructor will create a directory Node with the specified path.
|
NodeImpl(ArchivePath path,
Asset asset)
Constructor
This constructor will create an asset Node with the specified path.
|
Modifier and Type | Method and Description |
---|---|
static ArchivePath |
AssetUtil.getFullPathForClassResource(java.lang.Class<?> clazz)
Helper to extract a ClassResources full path.
|
static ArchivePath |
AssetUtil.getFullPathForClassResource(java.lang.String className)
Helper to extract a ClassResources full path.
|
static ArchivePath |
AssetUtil.getPathForClassloaderResource(java.lang.String resourceName)
Helper to extract a ClassloaderResources path information.
|
Modifier and Type | Method and Description |
---|---|
protected abstract ArchivePath |
EnterpriseContainerBase.getApplicationPath()
Should be implemented to set the path for Application related resources.
|
protected abstract ArchivePath |
ContainerBase.getClassesPath()
Should be implemented to set the path for Class related resources.
|
protected abstract ArchivePath |
ContainerBase.getLibraryPath()
Should be implemented to set the path for Library related resources.
|
protected abstract ArchivePath |
ContainerBase.getManifestPath()
Should be implemented to set the path for Manifest related resources.
|
protected abstract ArchivePath |
EnterpriseContainerBase.getModulePath()
Should be implemented to set the path for Module related resources.
|
protected abstract ArchivePath |
ContainerBase.getResourcePath()
Should be implemented to set the path for Resource related resources.
|
protected abstract ArchivePath |
WebContainerBase.getServiceProvidersPath()
Returns the path to web container service providers
|
protected abstract ArchivePath |
WebContainerBase.getWebInfPath()
Returns the path to WEB-INF
|
protected abstract ArchivePath |
WebContainerBase.getWebPath()
Returns the path to web resources
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<ArchivePath,Node> |
ContainerBase.getContent()
Obtains all assets in this archive, along with their respective paths.
|
java.util.Map<ArchivePath,Node> |
ContainerBase.getContent(Filter<ArchivePath> filter)
Obtains all assets matching given filter in this archive, along with its respective Path.
|
private java.util.Set<ArchivePath> |
ContainerBase.getInnerClasses(ArchivePath path) |
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(Asset asset,
ArchivePath target)
Adds the specified asset under the specified path into the target context
|
T |
ContainerBase.add(Asset asset,
ArchivePath path,
java.lang.String name)
Adds the specified asset under the specified target (directory) using the specified name.
|
T |
EnterpriseContainerBase.addAsApplicationResource(Asset resource,
ArchivePath target) |
T |
EnterpriseContainerBase.addAsApplicationResource(java.io.File resource,
ArchivePath target) |
T |
EnterpriseContainerBase.addAsApplicationResource(java.lang.Package resourcePackage,
java.lang.String resourceName,
ArchivePath target) |
T |
EnterpriseContainerBase.addAsApplicationResource(java.lang.String resourceName,
ArchivePath target) |
T |
EnterpriseContainerBase.addAsApplicationResource(java.net.URL resource,
ArchivePath target) |
T |
ContainerBase.addAsDirectories(ArchivePath... paths)
Adds the specified directories.
|
T |
ContainerBase.addAsDirectory(ArchivePath path)
Adds the specified directory.
|
T |
ContainerBase.addAsLibrary(Asset resource,
ArchivePath target) |
T |
ContainerBase.addAsLibrary(java.io.File resource,
ArchivePath target) |
T |
ContainerBase.addAsLibrary(java.lang.String resourceName,
ArchivePath target) |
T |
ContainerBase.addAsLibrary(java.net.URL resource,
ArchivePath target) |
T |
ContainerBase.addAsManifestResource(Asset resource,
ArchivePath target) |
T |
ContainerBase.addAsManifestResource(java.io.File resource,
ArchivePath target) |
T |
ContainerBase.addAsManifestResource(java.lang.Package resourcePackage,
java.lang.String resourceName,
ArchivePath target) |
T |
ContainerBase.addAsManifestResource(java.lang.String resourceName,
ArchivePath target) |
T |
ContainerBase.addAsManifestResource(java.net.URL resource,
ArchivePath target) |
T |
EnterpriseContainerBase.addAsModule(Asset resource,
ArchivePath targetPath) |
T |
EnterpriseContainerBase.addAsModule(java.io.File resource,
ArchivePath targetPath) |
T |
EnterpriseContainerBase.addAsModule(java.lang.String resourceName,
ArchivePath targetPath) |
T |
EnterpriseContainerBase.addAsModule(java.net.URL resource,
ArchivePath targetPath) |
T |
ContainerBase.addAsResource(Asset resource,
ArchivePath target) |
T |
ContainerBase.addAsResource(java.io.File resource,
ArchivePath target) |
T |
ContainerBase.addAsResource(java.lang.Package resourcePackage,
java.lang.String resourceName,
ArchivePath target) |
T |
ContainerBase.addAsResource(java.lang.String resourceName,
ArchivePath target) |
T |
ContainerBase.addAsResource(java.lang.String resourceName,
ArchivePath target,
java.lang.ClassLoader classLoader) |
T |
ContainerBase.addAsResource(java.net.URL resource,
ArchivePath target) |
T |
WebContainerBase.addAsWebInfResource(Asset resource,
ArchivePath target)
Adds the
Asset as a WEB-INF resource to the container, returning the container itself. |
T |
WebContainerBase.addAsWebInfResource(java.io.File resource,
ArchivePath target)
Adds the
File as a WEB-INF resource to the container, returning the container itself. |
T |
WebContainerBase.addAsWebInfResource(java.lang.Package resourcePackage,
java.lang.String resourceName,
ArchivePath target)
Adds the resource as a WEB-INF resource to a specific path inside the container, returning the container itself.
|
T |
WebContainerBase.addAsWebInfResource(java.lang.String resourceName,
ArchivePath target)
Adds the resource as a WEB-INF resource to the container, returning the container itself.
|
T |
WebContainerBase.addAsWebInfResource(java.net.URL resource,
ArchivePath target)
Adds the
URL as a WEB-INF resource to the container, returning the container itself. |
T |
WebContainerBase.addAsWebResource(Asset resource,
ArchivePath target)
Adds the
Asset as a Web resource to the container, returning the container itself. |
T |
WebContainerBase.addAsWebResource(java.io.File resource,
ArchivePath target)
Adds the
File as a Web resource to the container, returning the container itself. |
T |
WebContainerBase.addAsWebResource(java.lang.Package resourcePackage,
java.lang.String resourceName,
ArchivePath target) |
T |
WebContainerBase.addAsWebResource(java.lang.String resourceName,
ArchivePath target) |
T |
WebContainerBase.addAsWebResource(java.net.URL resource,
ArchivePath target) |
private T |
ContainerBase.addNestedJarFileResource(java.io.File resource,
ArchivePath target,
ArchivePath base)
Adds the specified
File resource (a nested JAR File form) to the current archive, returning the archive
itself |
boolean |
ContainerBase.contains(ArchivePath path)
Denotes whether this archive contains a resource at the specified path
|
Node |
ContainerBase.delete(ArchivePath path)
|
Node |
ContainerBase.get(ArchivePath path)
Obtains the
Node located at the specified path |
<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)
|
private java.util.Set<ArchivePath> |
ContainerBase.getInnerClasses(ArchivePath 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.move(ArchivePath source,
ArchivePath target)
Moves the asset under the source path to the target path.
|
Modifier and Type | Method and Description |
---|---|
private void |
ContainerBase.addPackage(boolean recursive,
Filter<ArchivePath> filter,
java.lang.ClassLoader classLoader,
java.lang.String packageName) |
private T |
ContainerBase.addPackages(boolean recursive,
Filter<ArchivePath> filter,
java.lang.ClassLoader cl,
java.lang.Package... packages) |
private T |
ContainerBase.addPackages(boolean recursive,
Filter<ArchivePath> filter,
java.lang.ClassLoader classLoader,
java.lang.String... packageNames) |
T |
ContainerBase.addPackages(boolean recursive,
Filter<ArchivePath> filter,
java.lang.Package... packages) |
T |
ContainerBase.addPackages(boolean recursive,
Filter<ArchivePath> filter,
java.lang.String... packageNames) |
private void |
ContainerBase.deletePackage(boolean recursive,
Filter<ArchivePath> filter,
java.lang.String packageName,
java.lang.ClassLoader classLoader) |
T |
ContainerBase.deletePackages(boolean recursive,
Filter<ArchivePath> filter,
java.lang.Package... packages) |
T |
ContainerBase.deletePackages(boolean recursive,
Filter<ArchivePath> filter,
java.lang.String... packages) |
T |
ContainerBase.filter(Filter<ArchivePath> filter)
Obtains all assets matching given filter in this archive as a new Archive.
This is an alias for shallowCopy(Filter). |
<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 . |
java.util.Map<ArchivePath,Node> |
ContainerBase.getContent(Filter<ArchivePath> filter)
Obtains all assets matching given filter in this archive, along with its respective 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,
Filter<ArchivePath> filter)
Merge the contents from an existing archive in a specific path without maintaining the archive name in the
context path.
|
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 | Field and Description |
---|---|
private ArchivePath |
AbstractOnDemandInputStream.currentPath
Currently processed archive path - for displaying exception.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
AbstractExporterDelegate.processNode(ArchivePath path,
Node node)
Template method for processing a single node.
|
protected void |
ExplodedExporterDelegate.processNode(ArchivePath path,
Node node)
Template method for processing a single node.
|
Modifier and Type | Method and Description |
---|---|
protected void |
TarExporterDelegate.processNode(ArchivePath path,
Node node) |
protected void |
TarGzExporterDelegate.processNode(ArchivePath path,
Node node) |
protected void |
TarBz2ExporterDelegate.processNode(ArchivePath path,
Node node) |
Modifier and Type | Method and Description |
---|---|
protected void |
ZipExporterDelegate.processNode(ArchivePath path,
Node node) |
Modifier and Type | Method and Description |
---|---|
boolean |
ExcludePaths.include(ArchivePath path) |
boolean |
IncludeAllPaths.include(ArchivePath object) |
boolean |
ExcludeRegExpPaths.include(ArchivePath path) |
boolean |
IncludeRegExpPaths.include(ArchivePath path) |
boolean |
IncludePaths.include(ArchivePath path) |
Modifier and Type | Method and Description |
---|---|
private ArchivePath |
ExplodedImporterImpl.calculatePath(java.io.File root,
java.io.File child)
Calculate the relative child path.
|
Modifier and Type | Method and Description |
---|---|
private void |
ExplodedImporterImpl.doImport(java.io.File root,
java.io.File[] files,
Filter<ArchivePath> filter) |
ExplodedImporter |
ExplodedImporterImpl.importDirectory(java.io.File file,
Filter<ArchivePath> filter)
Import a directory structure as a archive.
|
ExplodedImporter |
ExplodedImporterImpl.importDirectory(java.lang.String fileName,
Filter<ArchivePath> filter)
Import a directory structure as a archive.
|
Modifier and Type | Method and Description |
---|---|
I |
TarImporterBase.importFrom(java.io.File file,
Filter<ArchivePath> filter)
Imports provided File as a
Archive . |
I |
TarImporterBase.importFrom(java.io.InputStream stream,
Filter<ArchivePath> filter)
Imports provided stream as a
Archive . |
private I |
TarImporterBase.importFrom(S stream,
Filter<ArchivePath> filter) |
Modifier and Type | Method and Description |
---|---|
ZipImporter |
ZipImporterImpl.importFrom(java.io.File file,
Filter<ArchivePath> filter)
Imports provided File as a
Archive . |
ZipImporter |
ZipImporterImpl.importFrom(java.io.InputStream stream,
Filter<ArchivePath> filter)
Imports provided stream as a
Archive . |
private ZipImporter |
ZipImporterImpl.importFrom(java.util.zip.ZipFile file,
Filter<ArchivePath> filter) |
Modifier and Type | Class and Description |
---|---|
class |
BasicPath
A Path which may be optionally prefixed with some common namespace context at construction time.
|
Modifier and Type | Method and Description |
---|---|
ArchivePath |
BasicPath.getParent()
Obtains the parent of this Path, if exists, else null.
|
(package private) static ArchivePath |
PathUtil.getParent(ArchivePath path)
Obtains the parent of this Path, if exists, else null.
|
Modifier and Type | Method and Description |
---|---|
int |
BasicPath.compareTo(ArchivePath path) |
(package private) static ArchivePath |
PathUtil.getParent(ArchivePath path)
Obtains the parent of this Path, if exists, else null.
|
Constructor and Description |
---|
BasicPath(ArchivePath basePath,
ArchivePath context)
Creates a new Path using the specified base and specified relative context.
|
BasicPath(ArchivePath basePath,
java.lang.String context)
Creates a new Path using the specified base and specified relative context.
|
BasicPath(java.lang.String basePath,
ArchivePath context)
Creates a new Path using the specified base and specified relative context.
|
Modifier and Type | Field and Description |
---|---|
private static ArchivePath |
EnterpriseArchiveImpl.PATH_APPLICATION
Path to the application resources.
|
private static ArchivePath |
WebArchiveImpl.PATH_CLASSES
Path to the classes inside of the Archive.
|
private static ArchivePath |
JavaArchiveImpl.PATH_CLASSES
Path to the classes inside of the Archive.
|
private static ArchivePath |
WebArchiveImpl.PATH_LIBRARY
Path to the libraries inside of the Archive.
|
private static ArchivePath |
ResourceAdapterArchiveImpl.PATH_LIBRARY
Path to the application libraries.
|
private static ArchivePath |
EnterpriseArchiveImpl.PATH_LIBRARY
Path to the application libraries.
|
private static ArchivePath |
WebArchiveImpl.PATH_MANIFEST
Path to the manifests inside of the Archive.
|
private static ArchivePath |
ResourceAdapterArchiveImpl.PATH_MANIFEST
Path to the manifests inside of the Archive.
|
private static ArchivePath |
EnterpriseArchiveImpl.PATH_MANIFEST
Path to the manifests inside of the Archive.
|
private static ArchivePath |
JavaArchiveImpl.PATH_MANIFEST
Path to the manifests inside of the Archive.
|
private static ArchivePath |
EnterpriseArchiveImpl.PATH_MODULE
Path to the application modules.
|
private static ArchivePath |
WebArchiveImpl.PATH_RESOURCE
Path to the resources inside of the Archive.
|
private static ArchivePath |
ResourceAdapterArchiveImpl.PATH_RESOURCE
Path to the resources inside of the Archive.
|
private static ArchivePath |
EnterpriseArchiveImpl.PATH_RESOURCE
Path to the resources inside of the Archive.
|
private static ArchivePath |
JavaArchiveImpl.PATH_RESOURCE
Path to the resources inside of the Archive.
|
private static ArchivePath |
WebArchiveImpl.PATH_SERVICE_PROVIDERS
Path to web archive service providers.
|
private static ArchivePath |
WebArchiveImpl.PATH_WEB
Path to the web inside of the Archive.
|
private static ArchivePath |
WebArchiveImpl.PATH_WEB_INF
Path to the WEB-INF inside of the Archive.
|
Modifier and Type | Method and Description |
---|---|
protected ArchivePath |
EnterpriseArchiveImpl.getApplicationPath() |
protected ArchivePath |
WebArchiveImpl.getClassesPath()
Should be implemented to set the path for Class related resources.
|
protected ArchivePath |
ResourceAdapterArchiveImpl.getClassesPath()
Classes are not supported by ResourceAdapterArchive.
|
protected ArchivePath |
EnterpriseArchiveImpl.getClassesPath()
Classes are not supported by EnterpriseArchive.
|
protected ArchivePath |
JavaArchiveImpl.getClassesPath() |
protected ArchivePath |
WebArchiveImpl.getLibraryPath()
Should be implemented to set the path for Library related resources.
|
ArchivePath |
ResourceAdapterArchiveImpl.getLibraryPath() |
ArchivePath |
EnterpriseArchiveImpl.getLibraryPath() |
ArchivePath |
JavaArchiveImpl.getLibraryPath()
Libraries are not supported by JavaArchive.
|
protected ArchivePath |
WebArchiveImpl.getManifestPath()
Should be implemented to set the path for Manifest related resources.
|
protected ArchivePath |
ResourceAdapterArchiveImpl.getManifestPath() |
protected ArchivePath |
EnterpriseArchiveImpl.getManifestPath() |
protected ArchivePath |
JavaArchiveImpl.getManifestPath() |
protected ArchivePath |
EnterpriseArchiveImpl.getModulePath() |
protected ArchivePath |
WebArchiveImpl.getResourcePath()
Should be implemented to set the path for Resource related resources.
|
protected ArchivePath |
ResourceAdapterArchiveImpl.getResourcePath() |
protected ArchivePath |
EnterpriseArchiveImpl.getResourcePath() |
protected ArchivePath |
JavaArchiveImpl.getResourcePath() |
protected ArchivePath |
WebArchiveImpl.getServiceProvidersPath()
Returns the path to web container service providers
|
protected ArchivePath |
WebArchiveImpl.getWebInfPath()
Returns the path to WEB-INF
|
protected ArchivePath |
WebArchiveImpl.getWebPath()
Returns the path to web resources
|
Constructor and Description |
---|
ShrinkWrapPath(ArchivePath path,
ShrinkWrapFileSystem fileSystem)
Constructs a new instance using the specified (required) path and backing
ShrinkWrapFileSystem |