- public ChatHome chatHome(ChatroomFactory chatroomFactory)
- {
- return new ChatHome(chatroomFactory);
- }
-
- @Bean
- ChatroomFactory chatroomFactory(InMemoryPersistenceStrategy persistenceStrategy)
- {
- return new InMemoryChatroomFactory(persistenceStrategy);
- }
-
- @Bean
- InMemoryPersistenceStrategy persistenceStrategy()
- {
- return new InMemoryPersistenceStrategy();
- }
-
- @Bean
- public Clock clock()