dashboard
repositories
activity
search
login
common
/
securis
summary
reflog
commits
tree
compare
forks
blame
|
history
|
raw
|
HEAD
#4410 - Comments on classes
Joaquín Reñé
2025-10-07
146a0fb8b0e90f9196e569152f649baf60d6cc8f
[common/securis.git]
/
securis
/
src
/
main
/
java
/
net
/
curisit
/
securis
/
ioc
/
EnsureTransaction.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
* Copyright @ 2013 CurisTEC, S.A.S. All Rights Reserved.
*/
package net.curisit.securis.ioc;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import jakarta.interceptor.InterceptorBinding;
/**
* EnsureTransaction
* <p>
* CDI interceptor binding to mark resource methods that require a
* transaction boundary. Interceptors (e.g., in a request filter / writer
* interceptor) can check this annotation to begin/commit/rollback.
*
* Usage:
* {@code @EnsureTransaction} on JAX-RS methods.
*
* @author JRA
* Last reviewed by JRA on Oct 5, 2025.
*/
@Target({ ElementType.METHOD, ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@InterceptorBinding
public @interface EnsureTransaction { }