“Handler” pattern?

前端 未结 6 1796
臣服心动
臣服心动 2020-12-31 07:11

I\'ve come across a design pattern that\'s been referred to as a \"Handler Pattern,\" but I can\'t find any real references to this pattern anywhere. It\'s basically just a

6条回答
  •  灰色年华
    2020-12-31 07:49

    I've seen the "Handler" classes around in legacy code bases, especially for web services. From what I've seen though, these typically turn out to be an Adapter, Facade, or some similar pattern and ends up getting called a Handler since it is handling a request.

提交回复
热议问题