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
ConstructorDescriptionRestCollectionAdapterClassWriter
(String parentClassName) Creates a new RestCollectionAdapterClassWriter. -
Method Summary
Modifier and TypeMethodDescriptionReturns a class name for a RestCollectionAdapter.static String
getClassName
(String className) Returns a class name for a RestCollectionAdapter for given class.Class
<?> boolean
isCompatible
(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:
writeClass
in interfaceEclipseLinkClassWriter
- Throws:
ClassNotFoundException
-
isCompatible
- Specified by:
isCompatible
in interfaceEclipseLinkClassWriter
-
getParentClass
- Specified by:
getParentClass
in interfaceEclipseLinkClassWriter
-
getParentClassName
- Specified by:
getParentClassName
in interfaceEclipseLinkClassWriter
-