@Interceptor
@Measure
public class PerformanceInterceptor implements Serializable {
@AroundInvoke
public Object measure(InvocationContext ctx) throws Exception
{
...
}
@PostConstruct
public void measureCreate(InvocationContext ctx) { ... }
}
@InterceptorBinding
@Target(
{ElementType.METHOD, ElementType.TYPE}
)
@Retention(RetentionPolicy.RUNTIME)
@Inherited
public @interface Measure {
}
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Example:
@Interceptor
@Measure
public class PerformanceInterceptor implements Serializable {
@AroundInvoke
{ ... }public Object measure(InvocationContext ctx) throws Exception
@PostConstruct
public void measureCreate(InvocationContext ctx) { ... }
}
@InterceptorBinding
{ElementType.METHOD, ElementType.TYPE}@Target(
)
@Retention(RetentionPolicy.RUNTIME)
@Inherited
public @interface Measure {
}