T
- public abstract class ResourceAdapterContainerBase<T extends Archive<T>> extends ContainerBase<T> implements ResourceAdapterContainer<T>
DEFAULT_MANIFEST_NAME
Modifier | Constructor and Description |
---|---|
protected |
ResourceAdapterContainerBase(Class<T> actualType,
Archive<?> archive) |
Modifier and Type | Method and Description |
---|---|
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. |
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
as, getArchive
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
as
public T setResourceAdapterXML(String resourceName) throws IllegalArgumentException
ResourceAdapterContainer
ClassLoader
used to obtain the resource is up to the implementation.setResourceAdapterXML
in interface ResourceAdapterContainer<T extends Archive<T>>
resourceName
- resource to addIllegalArgumentException
- if resourceName is nullResourceAdapterContainer.setResourceAdapterXML(Asset)
public T setResourceAdapterXML(File resource) throws IllegalArgumentException
ResourceAdapterContainer
File
as ra.xml to the container, returning the container itself.setResourceAdapterXML
in interface ResourceAdapterContainer<T extends Archive<T>>
resource
- File
resource to addIllegalArgumentException
- if resource is nullResourceAdapterContainer.setResourceAdapterXML(Asset)
public T setResourceAdapterXML(URL resource) throws IllegalArgumentException
ResourceAdapterContainer
URL
as ra.xml to the container, returning the container itself.setResourceAdapterXML
in interface ResourceAdapterContainer<T extends Archive<T>>
resource
- URL
resource to addIllegalArgumentException
- if resource is nullResourceAdapterContainer.setResourceAdapterXML(Asset)
public T setResourceAdapterXML(Asset resource) throws IllegalArgumentException
ResourceAdapterContainer
Asset
as ra.xml to the container, returning the container itself.setResourceAdapterXML
in interface ResourceAdapterContainer<T extends Archive<T>>
resource
- Asset
resource to addIllegalArgumentException
- if resource is nullpublic T setResourceAdapterXML(Package resourcePackage, String resourceName) throws IllegalArgumentException
ResourceAdapterContainer
ClassLoader
used to obtain the resource is up to the implementation.setResourceAdapterXML
in interface ResourceAdapterContainer<T extends Archive<T>>
resourcePackage
- The package of the resourcesresourceName
- The name of the resource inside resourcePackageIllegalArgumentException
- if resourcePackage is nullResourceAdapterContainer.setResourceAdapterXML(String)
Copyright © 2016 JBoss by Red Hat. All rights reserved.