Hi Sean,

FreeMarker and Velocity extension have their own package names, so the TemplateRepresentation class name isn't ambiguous if your consider the package name. However, the org.restlet.resource package contains many types of representations (XmlRepresentation, DomRepresentation, etc.) so it is important to ensure that the name themselves aren't ambiguous.

Beside that, there isn't any technical reason. I only suggest to keep the TemplateRepresentation name to ensure consistency with Velocity and FreeMarker extensions, but this isn't an obligation.

Best,
Jerome


Sean Landis wrote :
I noticed that both the FreeMarker and Velocity representations have the same
name, whereas other representations go like DomRepresentation,
StringRepresentation, etc.
I'm adding my own template representation and I'm wondering if, given the above
naming inconsistency, if there's a reason (say reflection) why the two different
template representations are the same.

Sean

Reply via email to