Class ResourceAdapterContainerBase<T extends Archive<T>>
java.lang.Object
org.jboss.shrinkwrap.impl.base.AssignableBase<Archive<?>>
org.jboss.shrinkwrap.impl.base.container.ContainerBase<T>
org.jboss.shrinkwrap.impl.base.container.ResourceAdapterContainerBase<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
Archive<T>
,Assignable
,ClassContainer<T>
,LibraryContainer<T>
,ManifestContainer<T>
,ResourceAdapterContainer<T>
,ResourceContainer<T>
,ServiceProviderContainer<T>
,ArchiveFormatAssociable
- Direct Known Subclasses:
ResourceAdapterArchiveImpl
public abstract class ResourceAdapterContainerBase<T extends Archive<T>>
extends ContainerBase<T>
implements ResourceAdapterContainer<T>
ResourceAdapterContainerBase
Abstract class that helps implement the ResourceAdapter. Used by specs that extends the ResourceAdapter.
- Version:
- $Revision: $
-
Field Summary
Fields inherited from interface org.jboss.shrinkwrap.api.container.ManifestContainer
DEFAULT_MANIFEST_NAME
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ResourceAdapterContainerBase
(Class<T> actualType, Archive<?> archive) -
Method Summary
Modifier and TypeMethodDescriptionsetResourceAdapterXML
(File resource) Adds theFile
as 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 theURL
as ra.xml to the container, returning the container itself.setResourceAdapterXML
(Asset resource) Adds theAsset
as ra.xml to the container, returning the container itself.Methods inherited from class org.jboss.shrinkwrap.impl.base.container.ContainerBase
add, add, add, add, add, add, add, addAsDirectories, addAsDirectories, addAsDirectory, addAsDirectory, addAsLibraries, addAsLibraries, addAsLibraries, addAsLibraries, addAsLibraries, addAsLibrary, addAsLibrary, addAsLibrary, addAsLibrary, addAsLibrary, addAsLibrary, addAsLibrary, addAsLibrary, addAsLibrary, addAsLibrary, addAsLibrary, addAsManifestResource, addAsManifestResource, addAsManifestResource, addAsManifestResource, addAsManifestResource, addAsManifestResource, addAsManifestResource, addAsManifestResource, addAsManifestResource, addAsManifestResource, addAsManifestResource, addAsManifestResource, addAsManifestResource, addAsManifestResources, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResources, addAsServiceProvider, addAsServiceProvider, addAsServiceProviderAndClasses, addClass, addClass, addClass, addClasses, addDefaultPackage, addHandlers, addManifest, addPackage, addPackage, addPackages, addPackages, addPackages, addPackages, contains, contains, covarientReturn, delete, delete, deleteClass, deleteClass, deleteClasses, deleteDefaultPackage, deletePackage, deletePackage, deletePackages, deletePackages, deletePackages, deletePackages, equals, filter, get, get, getActualClass, getArchiveFormat, getAsType, getAsType, getAsType, getAsType, getAsType, getAsType, getClassesPath, getContent, getContent, getId, getLibraryPath, getManifestPath, getName, getResourcePath, hashCode, merge, merge, merge, merge, merge, merge, move, move, setManifest, setManifest, setManifest, setManifest, setManifest, shallowCopy, shallowCopy, toString, toString, toString, writeTo
Methods inherited from class org.jboss.shrinkwrap.impl.base.AssignableBase
as, getArchive
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.jboss.shrinkwrap.api.Assignable
as
-
Constructor Details
-
ResourceAdapterContainerBase
-
-
Method Details
-
setResourceAdapterXML
Description copied from interface:ResourceAdapterContainer
Adds the resource as ra.xml to the container, returning the container itself.
TheClassLoader
used to obtain the resource is up to the implementation.- Specified by:
setResourceAdapterXML
in interfaceResourceAdapterContainer<T extends Archive<T>>
- Parameters:
resourceName
- resource to add- Returns:
- This virtual archive
- Throws:
IllegalArgumentException
- if resourceName is null- See Also:
-
setResourceAdapterXML
Description copied from interface:ResourceAdapterContainer
Adds theFile
as ra.xml to the container, returning the container itself.- Specified by:
setResourceAdapterXML
in interfaceResourceAdapterContainer<T extends Archive<T>>
- Parameters:
resource
-File
resource to add- Returns:
- This virtual archive
- Throws:
IllegalArgumentException
- if resource is null- See Also:
-
setResourceAdapterXML
Description copied from interface:ResourceAdapterContainer
Adds theURL
as ra.xml to the container, returning the container itself.- Specified by:
setResourceAdapterXML
in interfaceResourceAdapterContainer<T extends Archive<T>>
- Parameters:
resource
-URL
resource to add- Returns:
- This virtual archive
- Throws:
IllegalArgumentException
- if resource is null- See Also:
-
setResourceAdapterXML
Description copied from interface:ResourceAdapterContainer
Adds theAsset
as ra.xml to the container, returning the container itself.- Specified by:
setResourceAdapterXML
in interfaceResourceAdapterContainer<T extends Archive<T>>
- Parameters:
resource
-Asset
resource to add- Returns:
- This virtual archive
- Throws:
IllegalArgumentException
- if resource is null
-
setResourceAdapterXML
public T setResourceAdapterXML(Package resourcePackage, String resourceName) throws IllegalArgumentException Description copied from interface:ResourceAdapterContainer
Adds the resource inside the package as ra.xml to the container, returning the container itself.
TheClassLoader
used to obtain the resource is up to the implementation.- Specified by:
setResourceAdapterXML
in interfaceResourceAdapterContainer<T extends Archive<T>>
- 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:
-