public abstract class SpringPaymentHandler extends BasePaymentHandler implements org.springframework.beans.factory.InitializingBean
paymentDataConverter, paymentEventBus
Constructor and Description |
---|
SpringPaymentHandler() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
Invoked by the containing
BeanFactory after it has set all bean properties
and satisfied BeanFactoryAware , ApplicationContextAware etc. |
protected java.time.Duration |
getDefaultInvoiceValidity() |
protected java.time.Duration |
getDefaultSettlementValidity() |
protected LightningHandler |
getLightningHandler()
Method that should returned the used LightningHandler.
|
protected boolean |
isLightningHandlerAutoconnect() |
checkSettlement, createOrder, findPaymentData, getLightningHandlerContext, init, lookupInvoice, markAsExecuted, newPaymentData, onLightningEvent, registerListener, registerSettledInvoice, unregisterListener, updatePaymentData
public void afterPropertiesSet() throws java.lang.Exception
BeanFactory
after it has set all bean properties
and satisfied BeanFactoryAware
, ApplicationContextAware
etc.
This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
- in the event of misconfiguration (such as failure to set an
essential property) or if initialization fails for any other reasonprotected LightningHandler getLightningHandler()
getLightningHandler
in class BasePaymentHandler
protected java.time.Duration getDefaultInvoiceValidity()
getDefaultInvoiceValidity
in class BasePaymentHandler
protected java.time.Duration getDefaultSettlementValidity()
getDefaultSettlementValidity
in class BasePaymentHandler
protected boolean isLightningHandlerAutoconnect() throws InternalErrorException
isLightningHandlerAutoconnect
in class BasePaymentHandler
InternalErrorException
- if problems occurred parsing configuration.