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 Details

    • getOrCreateResourceAdapter

      ResourceAdapterType<ResourceAdaptersDescriptor> getOrCreateResourceAdapter()
      If not already created, a new resource-adapter element will be created and returned. Otherwise, the first existing resource-adapter element will be returned.
      Returns:
      the instance defined for the element resource-adapter
    • createResourceAdapter

      Creates a new resource-adapter element
      Returns:
      the new created instance of ResourceAdapterType
    • getAllResourceAdapter

      Returns all resource-adapter elements
      Returns:
      list of resource-adapter
    • removeAllResourceAdapter

      ResourceAdaptersDescriptor removeAllResourceAdapter()
      Removes all resource-adapter elements
      Returns:
      the current instance of ResourceAdapterType