public class PluginContextImpl extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, PluginContext
This class is the request context used in financial transactions and queries.
Plugin
,
QueryablePlugin
,
Serialized FormConstructor and Description |
---|
PluginContextImpl(PluginConfigurationImpl configurationData,
java.util.Locale locale,
java.lang.String paymentConfigurationGroupId)
This method creates a new Plugin context.
|
PluginContextImpl(PluginConfigurationImpl configurationData,
java.util.Locale locale,
java.lang.String paymentConfigurationGroupId,
java.lang.String orderChannelId)
This method creates a new Plugin context.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
This method returns a shallow copy of this
PluginContextImpl instance. |
PluginConfiguration |
getConfiguration()
This method gets the Plugin configuration.
|
java.util.Locale |
getLocale()
This method gets the locale to be used in the financial transaction or query.
|
java.lang.String |
getOrderChannelId()
This method gets the channel identifier of the order.
|
java.lang.String |
getPaymentConfigurationGroupId()
This method gets the configuration group id .
|
java.lang.String |
toString()
This method obtains a human-readable representation of the
PluginContext . |
public PluginContextImpl(PluginConfigurationImpl configurationData, java.util.Locale locale, java.lang.String paymentConfigurationGroupId)
This method creates a new Plugin context.
configurationData
- The Plugin configuration coming from the
Plugin deployment descriptor.locale
- The locale to be used in the financial transaction or query.paymentConfigurationGroupId
- The configuration group id, such as group-101.public PluginContextImpl(PluginConfigurationImpl configurationData, java.util.Locale locale, java.lang.String paymentConfigurationGroupId, java.lang.String orderChannelId)
This method creates a new Plugin context.
configurationData
- The Plugin configuration coming from the
Plugin deployment descriptor.locale
- The locale to be used in the financial transaction or query.paymentConfigurationGroupId
- The configuration group id, such as group-101.orderChannelId
- The channel identifier through which the order is placed.public PluginConfiguration getConfiguration()
This method gets the Plugin configuration.
getConfiguration
in interface PluginContext
public java.util.Locale getLocale()
This method gets the locale to be used in the financial transaction or query.
getLocale
in interface PluginContext
public java.lang.String getPaymentConfigurationGroupId()
getPaymentConfigurationGroupId
in interface PluginContext
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
This method returns a shallow copy of this PluginContextImpl
instance.
clone
in class java.lang.Object
PluginContextImpl
instance.java.lang.CloneNotSupportedException
- If the instance cannot be cloned.public java.lang.String toString()
This method obtains a human-readable representation of the PluginContext
.
toString
in interface PluginContext
toString
in class java.lang.Object
PluginContext
.public java.lang.String getOrderChannelId()
This method gets the channel identifier of the order.
getOrderChannelId
in interface PluginContext