Skip to content

Commit 97e473b

Browse files
committed
fix: payment system does not call init method
1 parent 462b974 commit 97e473b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/kotlin/co/statu/rule/plugins/payment/PaymentSystem.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ import kotlinx.coroutines.CoroutineScope
1414
import kotlinx.coroutines.launch
1515
import org.slf4j.Logger
1616
import org.springframework.beans.factory.config.ConfigurableBeanFactory
17+
import org.springframework.context.annotation.Lazy
1718
import org.springframework.context.annotation.Scope
1819
import org.springframework.stereotype.Component
1920

2021
@Component
2122
@Scope(value = ConfigurableBeanFactory.SCOPE_SINGLETON)
23+
@Lazy
2224
class PaymentSystem(
2325
private val paymentPlugin: PaymentPlugin,
2426
private val vertx: Vertx,
@@ -39,6 +41,7 @@ class PaymentSystem(
3941
private val purchaseDao: PurchaseDao = PurchaseDaoImpl()
4042

4143
init {
44+
println("geldi")
4245
val paymentEventHandlers = PluginEventManager.getEventListeners<PaymentEventListener>()
4346

4447
paymentEventHandlers.forEach {

0 commit comments

Comments
 (0)