arjantijms commented on pull request #399:
URL: https://github.com/apache/tomcat/pull/399#issuecomment-752074636


   > I share the concern that adding a getRequest() method may undermine the 
use of a facade.
   
   Isn't the facade intended as a service to the user to not accidentally 
access specifics? It's not a protection mechanism, is it? As with reflection 
one can get to the wrapped instance anyway.
   
   With a `getRequest()` method, the user has to do 2 very specific actions: 
cast to `RequestFacade` and then call that method. Compare to e.g. JPA's 
EntityManager, which is a facade for (mainly) Hibernate, but still has a method 
to get the underlying Hibernate specific manager.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to