File tree 2 files changed +11
-1
lines changed
src/main/java/io/fusionauth/domain
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ public int hashCode() {
58
58
59
59
public EventConfiguration normalize () {
60
60
events .forEach ((key , value ) -> value .transactionType = key .isTransactionalEvent () ? value .transactionType : TransactionType .None );
61
+ events .keySet ().removeIf (EventType ::isInstanceEvent );
61
62
return this ;
62
63
}
63
64
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2018-2020 , FusionAuth, All Rights Reserved
2
+ * Copyright (c) 2018-2022 , FusionAuth, All Rights Reserved
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -171,6 +171,15 @@ public String eventName() {
171
171
return eventName ;
172
172
}
173
173
174
+ public boolean isInstanceEvent () {
175
+ try {
176
+ return Class .forName (getClass ().getPackage ().getName () + "." + name () + "Event" ).getConstructor ().newInstance () instanceof InstanceEvent ;
177
+ } catch (Exception ignore ) {
178
+ }
179
+
180
+ return false ;
181
+ }
182
+
174
183
public boolean isTransactionalEvent () {
175
184
try {
176
185
return !(Class .forName (getClass ().getPackage ().getName () + "." + name () + "Event" ).getConstructor ().newInstance () instanceof NonTransactionalEvent );
You can’t perform that action at this time.
0 commit comments