Interface ResourceAdaptersType<T>
- All Superinterfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>
- All Known Implementing Classes:
ResourceAdaptersTypeImpl
public interface ResourceAdaptersType<T>
extends org.jboss.shrinkwrap.descriptor.api.Child<T>
This interface defines the contract for the
resource-adaptersType xsd type-
Method Summary
Modifier and TypeMethodDescriptionCreates a newresource-adapterelementReturns allresource-adapterelementsIf not already created, a newresource-adapterelement will be created and returned.Removes allresource-adapterelementsMethods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
-
Method Details
-
getOrCreateResourceAdapter
ResourceAdapterType<ResourceAdaptersType<T>> 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<ResourceAdaptersType<T>> createResourceAdapter()Creates a newresource-adapterelement- Returns:
- the new created instance of
ResourceAdapterType<ResourceAdaptersType>
-
getAllResourceAdapter
List<ResourceAdapterType<ResourceAdaptersType<T>>> getAllResourceAdapter()Returns allresource-adapterelements- Returns:
- list of
resource-adapter
-
removeAllResourceAdapter
ResourceAdaptersType<T> removeAllResourceAdapter()Removes allresource-adapterelements- Returns:
- the current instance of
ResourceAdapterType<ResourceAdaptersType>
-