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:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user