ch.sahits.game.openpatrician.model
Class ModelDIFactory

java.lang.Object
  extended by ch.sahits.game.openpatrician.util.BaseDIFactory
      extended by ch.sahits.game.openpatrician.model.ModelDIFactory

public class ModelDIFactory
extends BaseDIFactory


Field Summary
private  org.springframework.beans.factory.BeanFactory factory
           
private static ModelDIFactory INSTANCE
           
 
Constructor Summary
protected ModelDIFactory()
          Make the constructor portected to ensure it only can be called from super classes implementing the singleton pattern
 
Method Summary
 BuildingProduction getBuildingProduction()
          Retrieve the BuildingProduction instance
 CityProduction getCityProduction()
          Retrieve the CityProduction instance
static ModelDIFactory getInstance()
           
 PopulationConsume getPolulanceConsumtion()
          Retrieve the PolulationConsumtion instance
 void init()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factory

private org.springframework.beans.factory.BeanFactory factory

INSTANCE

private static ModelDIFactory INSTANCE
Constructor Detail

ModelDIFactory

protected ModelDIFactory()
Make the constructor portected to ensure it only can be called from super classes implementing the singleton pattern

Method Detail

getInstance

public static ModelDIFactory getInstance()

init

public void init()
Overrides:
init in class BaseDIFactory

getPolulanceConsumtion

public PopulationConsume getPolulanceConsumtion()
Retrieve the PolulationConsumtion instance

Returns:

getCityProduction

public CityProduction getCityProduction()
Retrieve the CityProduction instance

Returns:

getBuildingProduction

public BuildingProduction getBuildingProduction()
Retrieve the BuildingProduction instance

Returns:


Copyright © 2011-2012 Sahits GmbH. All Rights Reserved.