在PlayFramework中使用设计模式

Rif*_*fat 3 design-patterns playframework

我打算在播放应用程序中实现Observer模式和Decorator模式.现在,是否有任何包命名约定?我在哪里可以存储我的接口,抽象类.

我搜索过它但没有得到任何合适的结果.

提前致谢.

Ste*_*ner 5

只要您的控制器,模型和视图位于正确的包中(请参阅http://www.playframework.org/documentation/1.2.4/main中的 "MVC应用程序模式" ),您可以拥有其他任何包想.如果你想要更传统的东西,你可以做类似的事情

app 
  |-controllers 
  |-models 
  |-views 
  |-com
      |-mycompany
          |-whatever
Run Code Online (Sandbox Code Playgroud)