1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.mule.samples.voipservice.service; |
12 | |
|
13 | |
import org.mule.MuleManager; |
14 | |
import org.mule.samples.voipservice.interfaces.PaymentValidation; |
15 | |
|
16 | |
import java.util.ArrayList; |
17 | |
import java.util.List; |
18 | |
|
19 | |
import org.apache.commons.logging.Log; |
20 | |
import org.apache.commons.logging.LogFactory; |
21 | |
|
22 | 0 | public class PaymentValidationService implements PaymentValidation |
23 | |
{ |
24 | |
|
25 | 0 | protected static transient Log logger = LogFactory.getLog(PaymentValidationService.class); |
26 | |
|
27 | |
public List getCreditVendors(String cardType) |
28 | |
{ |
29 | 0 | logger.info("Inside PaymentValidationService.getCreditVendors() ***************"); |
30 | 0 | List endPoints = new ArrayList(); |
31 | 0 | endPoints.add(MuleManager.getInstance().lookupEndpointIdentifier(CREDIT_AGENCY_LOOKUP_NAME, null)); |
32 | 0 | endPoints.add(MuleManager.getInstance().lookupEndpointIdentifier(BANK_AGENCY_LOOKUP_NAME, null)); |
33 | 0 | return endPoints; |
34 | |
} |
35 | |
|
36 | |
} |