ca.mint.mintchip.android.api

Class MintChipFactory


public class MintChipFactory extends MintChipFactory

This class is responsible for instantiating a concrete implementation of the IMintChip for the Android.

Methods
Modifier and Type Method and Description
IMintChip createMintChip()

Creates an instance of the concrete implementation of the IMintChip for the Android.

static MintChipFactory getInstance() 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Method Detail

getInstance

public static MintChipFactory getInstance()

Returns:
the single instance of this class

createMintChip

public IMintChip createMintChip() throws MintChipException

Creates an instance of the concrete implementation of the IMintChip for the Android.

Specified by:
createMintChip in class MintChipFactory
Returns:
an instance of the IMintChip
Throws:
MintChipException - if MintChip is missing/faulty or if communication errors occurred with MintChip