Stripes

Pass execution context to @Before/@After methods

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: Release 1.5.7
  • Fix Version/s: None
  • Component/s: Context Management
  • Labels:
    None

Description

One major drawback to using @Before and @After methods in an ActionBean instead of a full-fledged Interceptor is that an Interceptor has access to the ExecutionContext, whereas @Before/@After methods do not. I propose an enhancement to BeforeAfterMethodInterceptor such that if a @Before/@After method is declared to take exactly one parameter of type ExecutionContext, the current execution context will be passed to the method.

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    06/Jun/12 1:08 PM
    Updated:
    06/Jun/12 1:08 PM