Class RestCollectionAdapterClassWriter
java.lang.Object
org.eclipse.persistence.internal.jpa.rs.weaving.RestCollectionAdapterClassWriter
- All Implemented Interfaces:
EclipseLinkClassWriter
This class is used to generate XML type adapters for collection references in JPARS 2.0.
The generated classes are subclasses of
RestCollectionAdapter.- Since:
- EclipseLink 2.6.0
-
Constructor Summary
ConstructorsConstructorDescriptionRestCollectionAdapterClassWriter(String parentClassName) Creates a new RestCollectionAdapterClassWriter. -
Method Summary
Modifier and TypeMethodDescriptionReturns a class name for a RestCollectionAdapter.static StringgetClassName(String className) Returns a class name for a RestCollectionAdapter for given class.Class<?> booleanisCompatible(EclipseLinkClassWriter writer) byte[]writeClass(DynamicClassLoader loader, String className) public class _EntityRestCollectionAdapter extends RestCollectionAdapter<Entity> { public _EntityRestCollectionAdapter() { super(); } public _EntityRestCollectionAdapter(PersistentContext context) { super(context); } }
-
Constructor Details
-
RestCollectionAdapterClassWriter
Creates a new RestCollectionAdapterClassWriter.- Parameters:
parentClassName- superclass name.
-
-
Method Details
-
getClassName
Returns a class name for a RestCollectionAdapter for given class. The name is constructed as _<className>RestCollectionAdapter.- Parameters:
className- class name of the class to get RestCollectionAdapter name for.- Returns:
- RestCollectionAdapter name.
-
getClassName
Returns a class name for a RestCollectionAdapter.getClassName(String)- Returns:
- RestCollectionAdapter name.
-
writeClass
public class _EntityRestCollectionAdapter extends RestCollectionAdapter<Entity> { public _EntityRestCollectionAdapter() { super(); } public _EntityRestCollectionAdapter(PersistentContext context) { super(context); } }- Specified by:
writeClassin interfaceEclipseLinkClassWriter- Throws:
ClassNotFoundException
-
isCompatible
- Specified by:
isCompatiblein interfaceEclipseLinkClassWriter
-
getParentClass
- Specified by:
getParentClassin interfaceEclipseLinkClassWriter
-
getParentClassName
- Specified by:
getParentClassNamein interfaceEclipseLinkClassWriter
-