T - public interface ResourceAdapterContainer<T extends Archive<T>>
| 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(java.io.File resource)
Adds the
File as ra.xml to the container, returning the container itself. |
T |
setResourceAdapterXML(java.lang.Package resourcePackage,
java.lang.String resourceName)
Adds the resource inside the package as ra.xml to the container, returning the container itself.
|
T |
setResourceAdapterXML(java.lang.String resourceName)
Adds the resource as ra.xml to the container, returning the container itself.
|
T |
setResourceAdapterXML(java.net.URL resource)
Adds the
URL as ra.xml to the container, returning the container itself. |
T setResourceAdapterXML(java.lang.String resourceName) throws java.lang.IllegalArgumentException
ClassLoader used to obtain the resource is up to the implementation.resourceName - resource to addjava.lang.IllegalArgumentException - if resourceName is nullsetResourceAdapterXML(Asset)T setResourceAdapterXML(java.io.File resource) throws java.lang.IllegalArgumentException
File as ra.xml to the container, returning the container itself.resource - File resource to addjava.lang.IllegalArgumentException - if resource is nullsetResourceAdapterXML(Asset)T setResourceAdapterXML(java.net.URL resource) throws java.lang.IllegalArgumentException
URL as ra.xml to the container, returning the container itself.resource - URL resource to addjava.lang.IllegalArgumentException - if resource is nullsetResourceAdapterXML(Asset)T setResourceAdapterXML(Asset resource) throws java.lang.IllegalArgumentException
Asset as ra.xml to the container, returning the container itself.resource - Asset resource to addjava.lang.IllegalArgumentException - if resource is nullT setResourceAdapterXML(java.lang.Package resourcePackage, java.lang.String resourceName) throws java.lang.IllegalArgumentException
ClassLoader used to obtain the resource is up to the implementation.resourcePackage - The package of the resourcesresourceName - The name of the resource inside resourcePackagejava.lang.IllegalArgumentException - if resourcePackage is nulljava.lang.IllegalArgumentException - if resourceName is nullsetResourceAdapterXML(String)