com.liferay.commerce.internal.starter.BrazilCommerceRegionsStarter Maven / Gradle / Ivy
The newest version!
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.commerce.internal.starter;
import com.liferay.commerce.starter.CommerceRegionsStarter;
import com.liferay.portal.kernel.language.Language;
import java.util.Locale;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;
/**
* @author Riccardo Alberti
*/
@Component(
property = "commerce.region.starter.key=" + BrazilCommerceRegionsStarter.BRAZIL_NUMERIC_ISO_CODE,
service = CommerceRegionsStarter.class
)
public class BrazilCommerceRegionsStarter extends BaseCommerceRegionsStarter {
public static final int BRAZIL_NUMERIC_ISO_CODE = 76;
@Override
public String getLabel(Locale locale) {
return _language.get(locale, "country.brazil");
}
@Override
protected int getCountryIsoCode() {
return BRAZIL_NUMERIC_ISO_CODE;
}
@Override
protected String getFilePath() {
return _FILEPATH;
}
private static final String _FILEPATH =
"com/liferay/commerce/internal/brazil.json";
@Reference
private Language _language;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy