Interface ResourceContainer<T extends Archive<T>>

All Known Subinterfaces:
ClassContainer<T>, EnterpriseArchive, JavaArchive, ResourceAdapterArchive, ServiceProviderContainer<T>, WebArchive
All Known Implementing Classes:
ContainerBase, EnterpriseArchiveImpl, EnterpriseContainerBase, GenericArchiveImpl, JavaArchiveImpl, ResourceAdapterArchiveImpl, ResourceAdapterContainerBase, WebArchiveImpl, WebContainerBase

public 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.

The actual path to the Resources within the Archive is up to the implementations/specifications.
Version:
$Revision: $
  • Method Summary

    Modifier and Type
    Method
    Description
    addAsResource(File resource)
    Adds the File as a resource to the container, returning the container itself.
    addAsResource(File resource, String target)
    Adds the File as a resource to the container, returning the container itself.
    addAsResource(File resource, ArchivePath target)
    Adds the File as a resource to the container, returning the container itself.
    addAsResource(Package resourcePackage, String resourceName)
    Adds the resource as a resource to the container, returning the container itself.
    addAsResource(Package resourcePackage, String resourceName, String target)
    Adds the resource as a resource to a specific path inside the container, returning the container itself.
    addAsResource(Package resourcePackage, String resourceName, ArchivePath target)
    Adds the resource as a resource to a specific path inside the container, returning the container itself.
    addAsResource(String resourceName)
    Adds the resource as a resource to the container, returning the container itself.
    addAsResource(String resourceName, String target)
    Adds the resource as a resource to the container, returning the container itself.
    addAsResource(String resourceName, ArchivePath target)
    Adds the resource with the specified name to the container, returning the container itself.
    addAsResource(String resourceName, ArchivePath target, ClassLoader classLoader)
    Adds the resource as a resource to the container, returning the container itself.
    addAsResource(URL resource, String target)
    Adds the URL as a resource to the container, returning the container itself.
    addAsResource(URL resource, ArchivePath target)
    Adds the URL as a resource to the container, returning the container itself.
    addAsResource(Asset resource, String target)
    Adds the Asset as a resource to the container, returning the container itself.
    addAsResource(Asset resource, ArchivePath target)
    Adds the Asset as a resource to the container, returning the container itself.
    addAsResources(Package resourcePackage, String... resourceNames)
    Adds the resources inside the package as multiple resources to the container, returning the container itself.