@Service public class GisFeatureHelper extends Object implements org.springframework.context.ApplicationContextAware
| Modifier and Type | Field and Description |
|---|---|
ICountryDao |
countryDao |
| Constructor and Description |
|---|
GisFeatureHelper() |
| Modifier and Type | Method and Description |
|---|---|
Country |
getCountry(String countryCode) |
String |
getFullyQualifiedName(GisFeature gisFeature) |
String |
getFullyQualifiedName(GisFeature gisFeature,
boolean withCountry)
Returns a name of the form : (adm1Name et adm2Name are printed) Paris,
Département de Ville-De-Paris, Ile-De-France, (FR)
|
static GisFeatureHelper |
getInstance()
this method avoid the necessary injection in gisfeature
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
@Autowired public ICountryDao countryDao
public static GisFeatureHelper getInstance()
public String getFullyQualifiedName(GisFeature gisFeature, boolean withCountry)
withCountry - Whether the country information should be addedpublic String getFullyQualifiedName(GisFeature gisFeature)
public Country getCountry(String countryCode)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2015. All rights reserved.