File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
core/src/main/java/org/springframework/security/authorization/event Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 20
20
import java .util .function .Supplier ;
21
21
22
22
import org .springframework .context .ApplicationEvent ;
23
+ import org .springframework .core .ResolvableType ;
24
+ import org .springframework .core .ResolvableTypeProvider ;
23
25
import org .springframework .security .authorization .AuthorizationDecision ;
24
26
import org .springframework .security .authorization .AuthorizationResult ;
25
27
import org .springframework .security .core .Authentication ;
33
35
* @since 5.8
34
36
*/
35
37
@ SuppressWarnings ("serial" )
36
- public class AuthorizationEvent extends ApplicationEvent {
38
+ public class AuthorizationEvent extends ApplicationEvent implements ResolvableTypeProvider {
37
39
38
40
@ Serial
39
41
private static final long serialVersionUID = -9053927371500241295L ;
@@ -110,4 +112,14 @@ public AuthorizationResult getAuthorizationResult() {
110
112
return this .result ;
111
113
}
112
114
115
+ /**
116
+ * Get {@link ResolvableType} of this class.
117
+ * @return {@link ResolvableType}
118
+ * @since 6.5
119
+ */
120
+ @ Override
121
+ public ResolvableType getResolvableType () {
122
+ return ResolvableType .forClassWithGenerics (getClass (), ResolvableType .forInstance (getObject ()));
123
+ }
124
+
113
125
}
You can’t perform that action at this time.
0 commit comments