Interface ResourceAdaptersDescriptor
-
- All Superinterfaces:
org.jboss.shrinkwrap.descriptor.api.Descriptor,org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<ResourceAdaptersDescriptor>
- All Known Implementing Classes:
ResourceAdaptersDescriptorImpl
public interface ResourceAdaptersDescriptor extends org.jboss.shrinkwrap.descriptor.api.Descriptor, org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<ResourceAdaptersDescriptor>
This deployment descriptor provides the functionalities as described in the specification
Example:
ResourceAdaptersDescriptor descriptor = Descriptors.create(ResourceAdaptersDescriptor.class);
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResourceAdapterType<ResourceAdaptersDescriptor>createResourceAdapter()Creates a newresource-adapterelementList<ResourceAdapterType<ResourceAdaptersDescriptor>>getAllResourceAdapter()Returns allresource-adapterelementsResourceAdapterType<ResourceAdaptersDescriptor>getOrCreateResourceAdapter()If not already created, a newresource-adapterelement will be created and returned.ResourceAdaptersDescriptorremoveAllResourceAdapter()Removes allresource-adapterelements
-
-
-
Method Detail
-
getOrCreateResourceAdapter
ResourceAdapterType<ResourceAdaptersDescriptor> getOrCreateResourceAdapter()
If not already created, a newresource-adapterelement will be created and returned. Otherwise, the first existingresource-adapterelement will be returned.- Returns:
- the instance defined for the element
resource-adapter
-
createResourceAdapter
ResourceAdapterType<ResourceAdaptersDescriptor> createResourceAdapter()
Creates a newresource-adapterelement- Returns:
- the new created instance of
ResourceAdapterType
-
getAllResourceAdapter
List<ResourceAdapterType<ResourceAdaptersDescriptor>> getAllResourceAdapter()
Returns allresource-adapterelements- Returns:
- list of
resource-adapter
-
removeAllResourceAdapter
ResourceAdaptersDescriptor removeAllResourceAdapter()
Removes allresource-adapterelements- Returns:
- the current instance of
ResourceAdapterType
-
-