ShrinkWrap Aggregator and Build Parent 1.0.0-cr-1

org.jboss.shrinkwrap.impl.base.container
Class ResourceAdapterContainerBase<T extends Archive<T>>

java.lang.Object
  extended by org.jboss.shrinkwrap.impl.base.AssignableBase<Archive<?>>
      extended by org.jboss.shrinkwrap.impl.base.container.ContainerBase<T>
          extended by 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: $
Author:
John Bailey, Aslak Knutsen

Field Summary
 
Fields inherited from interface org.jboss.shrinkwrap.api.container.ManifestContainer
DEFAULT_MANIFEST_NAME
 
Constructor Summary
protected ResourceAdapterContainerBase(Class<T> actualType, Archive<?> archive)
           
 
Method Summary
 T setResourceAdapterXML(Asset resource)
          Adds the Asset as ra.xml to the container, returning the container itself.
 T setResourceAdapterXML(File resource)
          Adds the File as ra.xml to the container, returning the container itself.
 T setResourceAdapterXML(Package resourcePackage, String resourceName)
          Adds the resource inside the package as ra.xml to the container, returning the container itself.
 T setResourceAdapterXML(String resourceName)
          Adds the resource as ra.xml to the container, returning the container itself.
 T setResourceAdapterXML(URL resource)
          Adds the URL 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, addAsServiceProviderAndClasses, addClass, addClass, addClass, addClasses, addDefaultPackage, addManifest, addPackage, addPackage, addPackages, addPackages, addPackages, addPackages, contains, contains, covarientReturn, delete, delete, equals, get, get, getActualClass, getArchiveFormat, getAsType, getAsType, getAsType, getAsType, getAsType, getAsType, getClassesPath, getContent, getContent, getLibraryPath, getManifestPath, getName, getResourcePath, hashCode, merge, merge, merge, merge, merge, merge, setManifest, setManifest, setManifest, setManifest, setManifest, 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 Detail

ResourceAdapterContainerBase

protected ResourceAdapterContainerBase(Class<T> actualType,
                                       Archive<?> archive)
Method Detail

setResourceAdapterXML

public T setResourceAdapterXML(String resourceName)
                                           throws IllegalArgumentException
Description copied from interface: ResourceAdapterContainer
Adds the resource as ra.xml to the container, returning the container itself.
The ClassLoader used to obtain the resource is up to the implementation.

Specified by:
setResourceAdapterXML in interface ResourceAdapterContainer<T extends Archive<T>>
Parameters:
resourceName - resource to add
Returns:
This virtual archive
Throws:
IllegalArgumentException - if resourceName is null
See Also:
ResourceAdapterContainer.setResourceAdapterXML(Asset)

setResourceAdapterXML

public T setResourceAdapterXML(File resource)
                                           throws IllegalArgumentException
Description copied from interface: ResourceAdapterContainer
Adds the File as ra.xml to the container, returning the container itself.

Specified by:
setResourceAdapterXML in interface ResourceAdapterContainer<T extends Archive<T>>
Parameters:
resource - File resource to add
Returns:
This virtual archive
Throws:
IllegalArgumentException - if resource is null
See Also:
ResourceAdapterContainer.setResourceAdapterXML(Asset)

setResourceAdapterXML

public T setResourceAdapterXML(URL resource)
                                           throws IllegalArgumentException
Description copied from interface: ResourceAdapterContainer
Adds the URL as ra.xml to the container, returning the container itself.

Specified by:
setResourceAdapterXML in interface ResourceAdapterContainer<T extends Archive<T>>
Parameters:
resource - URL resource to add
Returns:
This virtual archive
Throws:
IllegalArgumentException - if resource is null
See Also:
ResourceAdapterContainer.setResourceAdapterXML(Asset)

setResourceAdapterXML

public T setResourceAdapterXML(Asset resource)
                                           throws IllegalArgumentException
Description copied from interface: ResourceAdapterContainer
Adds the Asset as ra.xml to the container, returning the container itself.

Specified by:
setResourceAdapterXML in interface ResourceAdapterContainer<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.

The ClassLoader used to obtain the resource is up to the implementation.

Specified by:
setResourceAdapterXML in interface ResourceAdapterContainer<T extends Archive<T>>
Parameters:
resourcePackage - The package of the resources
resourceName - The name of the resource inside resourcePackage
Returns:
This virtual archive
Throws:
IllegalArgumentException - if resourcePackage is null
See Also:
ResourceAdapterContainer.setResourceAdapterXML(String)

ShrinkWrap Aggregator and Build Parent 1.0.0-cr-1

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.