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 SummaryConstructorsConstructorDescriptionRestCollectionAdapterClassWriter(String parentClassName) Creates a new RestCollectionAdapterClassWriter.
- 
Method SummaryModifier 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- 
RestCollectionAdapterClassWriterCreates a new RestCollectionAdapterClassWriter.- Parameters:
- parentClassName- superclass name.
 
 
- 
- 
Method Details- 
getClassNameReturns 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.
 
- 
getClassNameReturns a class name for a RestCollectionAdapter.getClassName(String)- Returns:
- RestCollectionAdapter name.
 
- 
writeClasspublic class _EntityRestCollectionAdapter extends RestCollectionAdapter<Entity> { public _EntityRestCollectionAdapter() { super(); } public _EntityRestCollectionAdapter(PersistentContext context) { super(context); } }- Specified by:
- writeClassin interface- EclipseLinkClassWriter
- Throws:
- ClassNotFoundException
 
- 
isCompatible- Specified by:
- isCompatiblein interface- EclipseLinkClassWriter
 
- 
getParentClass- Specified by:
- getParentClassin interface- EclipseLinkClassWriter
 
- 
getParentClassName- Specified by:
- getParentClassNamein interface- EclipseLinkClassWriter
 
 
-