public void AfterPropertiesSet(IBeanContextFactory beanContextFactory) { beanContextFactory.RegisterAnonymousBean <ParserController>().Autowireable <IFileParserExtendable>(); IBeanConfiguration visioParser = beanContextFactory.RegisterAnonymousBean <VisioParser>(); beanContextFactory.Link(visioParser).To <IFileParserExtendable>().With("vsd"); IBeanConfiguration powerpointParser = beanContextFactory.RegisterAnonymousBean <PowerpointParser>(); beanContextFactory.Link(powerpointParser).To <IFileParserExtendable>().With("ppt"); beanContextFactory.Link(powerpointParser).To <IFileParserExtendable>().With("pptx"); }