javax.microedition.payment package
This package provides the payment application programming interface.
This application programming interface has been designed to allow for
an asynchronous handling of payment transactions. This is achieved by
an emit/notify mechanism, respectively represented by the
TransactionModule class and TransactionListener
interface.
It is also part of the design that no basic TransactionException
class has been specified. Thereby it is avoided that an
application developer uses a general catch(TransactionException)
to (not) handle all payment related exceptions. It is also part of the
design that the developer must set a listener for transaction
notifications. In the case this is omitted, a TransactionListenerException
is thrown where
appropriate.
Design
The following UML diagram details the previously defined classes and
interfaces and shows also the interaction between those classes:
|