Interface ResourceAdapterContainer<T extends Archive<T>>
- Type Parameters:
T-
- All Known Subinterfaces:
ResourceAdapterArchive
- All Known Implementing Classes:
ResourceAdapterArchiveImpl, ResourceAdapterContainerBase
public interface ResourceAdapterContainer<T extends Archive<T>>
Defines the contract for a component capable of storing Resource adapter resources.
- Version:
- $Revision: $
-
Method Summary
Modifier and TypeMethodDescriptionsetResourceAdapterXML(File resource) Adds theFileas ra.xml to the container, returning the container itself.setResourceAdapterXML(Package resourcePackage, String resourceName) Adds the resource inside the package as ra.xml to the container, returning the container itself.setResourceAdapterXML(String resourceName) Adds the resource as ra.xml to the container, returning the container itself.setResourceAdapterXML(URL resource) Adds theURLas ra.xml to the container, returning the container itself.setResourceAdapterXML(Asset resource) Adds theAssetas ra.xml to the container, returning the container itself.
-
Method Details
-
setResourceAdapterXML
Adds the resource as ra.xml to the container, returning the container itself.
TheClassLoaderused to obtain the resource is up to the implementation.- Parameters:
resourceName- resource to add- Returns:
- This virtual archive
- Throws:
IllegalArgumentException- if resourceName is null- See Also:
-
setResourceAdapterXML
Adds theFileas ra.xml to the container, returning the container itself.- Parameters:
resource-Fileresource to add- Returns:
- This virtual archive
- Throws:
IllegalArgumentException- if resource is null- See Also:
-
setResourceAdapterXML
Adds theURLas ra.xml to the container, returning the container itself.- Parameters:
resource-URLresource to add- Returns:
- This virtual archive
- Throws:
IllegalArgumentException- if resource is null- See Also:
-
setResourceAdapterXML
Adds theAssetas ra.xml to the container, returning the container itself.- Parameters:
resource-Assetresource to add- Returns:
- This virtual archive
- Throws:
IllegalArgumentException- if resource is null
-
setResourceAdapterXML
T setResourceAdapterXML(Package resourcePackage, String resourceName) throws IllegalArgumentException Adds the resource inside the package as ra.xml to the container, returning the container itself.
TheClassLoaderused to obtain the resource is up to the implementation.- Parameters:
resourcePackage- The package of the resourcesresourceName- The name of the resource inside resourcePackage- Returns:
- This virtual archive
- Throws:
IllegalArgumentException- if resourcePackage is nullIllegalArgumentException- if resourceName is null- See Also:
-