#445 - Make RepresentationModelAssemblerSupport extensible.

Original pull-request: #590
This commit is contained in:
Greg Turnquist
2019-06-27 14:34:29 -05:00
parent 9a3c9c61d7
commit a0469e0371

View File

@@ -89,6 +89,14 @@ public abstract class RepresentationModelAssemblerSupport<T, D extends Represent
return instance;
}
protected Class<?> getControllerClass() {
return this.controllerClass;
}
protected Class<D> getResourceType() {
return this.resourceType;
}
/**
* Instantiates the resource object. Default implementation will assume a no-arg constructor and use reflection but
* can be overridden to manually set up the object instance initially (e.g. to improve performance if this becomes an