Class RestCollectionAdapter<T extends PersistenceWeavedRest>
java.lang.Object
jakarta.xml.bind.annotation.adapters.XmlAdapter<CollectionWrapper<T>,Collection<T>>
org.eclipse.persistence.jpa.rs.util.xmladapters.RestCollectionAdapter<T>
- Type Parameters:
T
- list generac type
public class RestCollectionAdapter<T extends PersistenceWeavedRest>
extends XmlAdapter<CollectionWrapper<T>,Collection<T>>
Collections adapter used in JPARS V2. Collections are wrapped into CollectionWrapper which has 'links'.
- Since:
- EclipseLink 2.6.0
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRestCollectionAdapter
(PersistenceContext context) Instantiates a new RestCollectionAdapter. -
Method Summary
-
Field Details
-
context
-
-
Constructor Details
-
RestCollectionAdapter
public RestCollectionAdapter() -
RestCollectionAdapter
Instantiates a new RestCollectionAdapter.- Parameters:
context
- persistent context
-
-
Method Details
-
unmarshal
- Specified by:
unmarshal
in classXmlAdapter<CollectionWrapper<T extends PersistenceWeavedRest>,
Collection<T extends PersistenceWeavedRest>> - Throws:
Exception
-
marshal
- Specified by:
marshal
in classXmlAdapter<CollectionWrapper<T extends PersistenceWeavedRest>,
Collection<T extends PersistenceWeavedRest>> - Throws:
Exception
-