Add bean factory
Merge pull request #5 from topicusfinan/feature/BeanFactory

Add bean factory