@Component public class RepositoryStrategy extends Object implements IRepositoryStrategy
Modifier and Type | Field and Description |
---|---|
static Map<Class<? extends GisFeature>,IGisDao<? extends GisFeature>> |
daoMap
A Map with GisFeature call as keys and Dao as Values.
|
protected IGisDao<? extends GisFeature>[] |
daos |
protected static org.slf4j.Logger |
logger
The logger
|
Constructor and Description |
---|
RepositoryStrategy() |
Modifier and Type | Method and Description |
---|---|
Collection<IGisDao<? extends GisFeature>> |
getAvailablesDaos() |
IGisDao<? extends GisFeature> |
getDao(Class<?> placeType) |
void |
initMap() |
@Autowired protected IGisDao<? extends GisFeature>[] daos
protected static final org.slf4j.Logger logger
public static final Map<Class<? extends GisFeature>,IGisDao<? extends GisFeature>> daoMap
public IGisDao<? extends GisFeature> getDao(Class<?> placeType)
getDao
in interface IRepositoryStrategy
placeType
- the placetype we'd like to retrieve the dao. if the place
type is null the gisFeatureDao will be returnpublic Collection<IGisDao<? extends GisFeature>> getAvailablesDaos()
getAvailablesDaos
in interface IRepositoryStrategy
Copyright © 2015. All rights reserved.