KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > samples > voipservice > service > PaymentValidationService


1 /*
2  * $Id: PaymentValidationService.java 3798 2006-11-04 04:07:14Z aperepel $
3  * --------------------------------------------------------------------------------------
4  * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
5  *
6  * The software in this package is published under the terms of the MuleSource MPL
7  * license, a copy of which has been included with this distribution in the
8  * LICENSE.txt file.
9  */

10
11 package org.mule.samples.voipservice.service;
12
13 import org.apache.commons.logging.Log;
14 import org.apache.commons.logging.LogFactory;
15 import org.mule.MuleManager;
16 import org.mule.samples.voipservice.interfaces.PaymentValidation;
17
18 import java.util.ArrayList JavaDoc;
19 import java.util.List JavaDoc;
20
21 /**
22  * @author Binildas Christudas
23  */

24 public class PaymentValidationService implements PaymentValidation
25 {
26
27     protected static transient Log logger = LogFactory.getLog(PaymentValidationService.class);
28
29     public List JavaDoc getCreditVendors(String JavaDoc cardType)
30     {
31
32         logger.info("Inside PaymentValidationService.getCreditVendors() ***************");
33         List JavaDoc endPoints = new ArrayList JavaDoc();
34         endPoints.add(MuleManager.getInstance().lookupEndpointIdentifier(CREDIT_AGENCY_LOOKUP_NAME, null));
35         endPoints.add(MuleManager.getInstance().lookupEndpointIdentifier(BANK_AGENCY_LOOKUP_NAME, null));
36         return endPoints;
37     }
38
39 }
40
Popular Tags