@Configuration
@ComponentScan(basePackages={"ch.sahits.game.openpatrician.model","ch.sahits.game.openpatrician.util"})
public class ModelConfiguration
extends Object
| Modifier and Type | Field and Description |
|---|---|
private org.springframework.core.env.Environment |
standardEnvironment |
| Constructor and Description |
|---|
ModelConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
static org.springframework.beans.factory.config.PropertyPlaceholderConfigurer |
applicationProperties(String userHome) |
ICity |
cityBean(City cityData) |
Locale |
defaultLocale() |
static org.springframework.beans.factory.config.PropertyPlaceholderConfigurer |
difficulty() |
RandomNameLoader |
firstNameLoader() |
org.springframework.oxm.jaxb.Jaxb2Marshaller |
jaxb2MapMarshaller() |
RandomNameLoader |
lastNameLoader() |
org.springframework.context.support.ReloadableResourceBundleMessageSource |
messageSource() |
org.springframework.beans.factory.config.PropertiesFactoryBean |
model() |
org.springframework.beans.factory.config.PropertiesFactoryBean |
modelProperties() |
PeriodicalTimeUpdaterV2 |
periodicalEndOfDayUpdater()
Create a periodical updater for end of day which is a singleton.
|
PeriodicalTimeUpdaterV2 |
periodicalUpdater(EUpdateIntervalRegistration intervall)
Create a new periodical updater.
|
PeriodicalTimeUpdaterV2 |
periodicalWeeklyUpdater()
Create a periodical updater for weekly updates which is a singleton.
|
Random |
rnd() |
RandomNameLoader |
shipNameLoader() |
@Autowired private org.springframework.core.env.Environment standardEnvironment
@Bean public Random rnd()
@Bean public org.springframework.oxm.jaxb.Jaxb2Marshaller jaxb2MapMarshaller()
@Bean
public static org.springframework.beans.factory.config.PropertyPlaceholderConfigurer applicationProperties(@Value(value="#{systemProperties[\'user.home\']}")
String userHome)
@Bean public static org.springframework.beans.factory.config.PropertyPlaceholderConfigurer difficulty()
@Bean public org.springframework.beans.factory.config.PropertiesFactoryBean model()
@Bean public Locale defaultLocale()
@Bean public RandomNameLoader firstNameLoader()
@Bean public RandomNameLoader lastNameLoader()
@Bean public RandomNameLoader shipNameLoader()
@Bean public org.springframework.beans.factory.config.PropertiesFactoryBean modelProperties()
@Bean public org.springframework.context.support.ReloadableResourceBundleMessageSource messageSource()
@Bean @Scope(value="prototype") public PeriodicalTimeUpdaterV2 periodicalUpdater(EUpdateIntervalRegistration intervall)
intervall - @Bean @Lazy public PeriodicalTimeUpdaterV2 periodicalEndOfDayUpdater()
@Bean @Lazy public PeriodicalTimeUpdaterV2 periodicalWeeklyUpdater()
Copyright © 2011-2015 Sahits GmbH. All Rights Reserved.