Changing from arrays to IList, generify AOP API, change GetObjectsOfType<T> to GetObjects<T> and GetObjectNamesForType<T> to GetObjectNames<T>

This commit is contained in:
Marko Lahma
2012-03-26 08:45:50 +03:00
parent 68b67e3f45
commit 7778994f05
120 changed files with 883 additions and 844 deletions

View File

@@ -47,7 +47,7 @@ namespace Spring.AopQuickStart
{
// Create AOP proxy using Spring.NET IoC container.
IApplicationContext ctx = ContextRegistry.GetContext();
IDictionary<string, ICommand> commands = ctx.GetObjectsOfType<ICommand>();
IDictionary<string, ICommand> commands = ctx.GetObjects<ICommand>();
foreach (ICommand command in commands.Values)
{

View File

@@ -54,7 +54,7 @@ namespace Spring.TxQuickStart
NamespaceParserRegistry.RegisterParser(typeof(TxNamespaceParser));
NamespaceParserRegistry.RegisterParser(typeof(AopNamespaceParser));
IApplicationContext context = CreateContextFromXml();
IDictionary<string, IAccountManager> dict = context.GetObjectsOfType<IAccountManager>();
IDictionary<string, IAccountManager> dict = context.GetObjects<IAccountManager>();
accountManager = context["accountManager"] as IAccountManager;
CleanDb(context);
}