org.mule.samples.voipservice.service.PaymentValidationService Maven / Gradle / Ivy
/*
* $Id: PaymentValidationService.java 3167 2006-09-22 15:47:04 +0000 (Fri, 22 Sep 2006) holger $
* --------------------------------------------------------------------------------------
* Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
*
* The software in this package is published under the terms of the MuleSource MPL
* license, a copy of which has been included with this distribution in the
* LICENSE.txt file.
*/
package org.mule.samples.voipservice.service;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.mule.MuleManager;
import org.mule.samples.voipservice.interfaces.PaymentValidation;
import java.util.ArrayList;
import java.util.List;
/**
* @author Binildas Christudas
*/
public class PaymentValidationService implements PaymentValidation {
protected static transient Log logger = LogFactory.getLog(PaymentValidationService.class);
public List getCreditVendors(String cardType) {
logger.info("Inside PaymentValidationService.getCreditVendors() ***************");
List endPoints = new ArrayList();
endPoints.add(MuleManager.getInstance().lookupEndpointIdentifier(CREDIT_AGENCY_LOOKUP_NAME, null));
endPoints.add(MuleManager.getInstance().lookupEndpointIdentifier(BANK_AGENCY_LOOKUP_NAME, null));
return endPoints;
}
}