@Service @Lazy @DependentInitialisation(value=MapInitializedBean.class) public class CityProductionStorage extends Object
| Modifier and Type | Field and Description |
|---|---|
private org.springframework.context.ApplicationContext |
context |
private IMap |
map |
private Map<ICity,ProductionStorage> |
storage |
| Constructor and Description |
|---|
CityProductionStorage() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(ICity city)
Create the production storage for an additional city.
|
ProductionStorage |
getStorage(ICity city)
Retrieve the
ProductionStorage for the city. |
private void |
init() |
private Map<ICity,ProductionStorage> storage
@Autowired private IMap map
@Autowired private org.springframework.context.ApplicationContext context
@PostConstruct private void init()
public void add(ICity city)
city - public ProductionStorage getStorage(ICity city)
ProductionStorage for the city.city - Copyright © 2011-2016 Sahits GmbH. All Rights Reserved.