Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 592 Bytes

ch06-ControllerInterceptions.textile

File metadata and controls

18 lines (14 loc) · 592 Bytes

Controller – Interceptions

@Before ➟ action ➟ @After ➟ template ➟ @Finally
Interceptions evaluation order
インターセプト評価の順

@Before static void checkAuthentification()
@After static void log()
@Finally static void audit()
You get the idea

@With(Secure.class)
public class Admin extends Application
コントローラスコープでのカスタムインターセプタ

==@Catch(value={RuntimeException.class})==
public static void onException(RuntimeException e) {…}
コントローラ層での例外ハンドリング