I think you'll need a custom activator here.
FactoryMethodActivator does not support proxying and trying to pass in
pre-created proxy is not supported either as you already noticed.
HTH,
Krzysztof
On 29/01/2011 1:28 AM, Nick Peeples wrote:
Curiosity gets me every time too, not a problem.
This is more or less an exercise to be honest. I'm playing around with
doing something like DictionaryAdapter. The interfaces are going to
represent sections in a ini config file, but are also going to have a
mixin with some other behaviors. At least, this is the intention :)
interface ISettings {
event OnChanged;
}
interface ISectionSettings : ISettings {
string Foo { get; set; }
}
config:
[section]
foo = bar
usage:
class Something {
public Something(ISectionSettings settings) {
settings.OnChange += ...;
Assert.That(settings.Foo, Is.EqualTo("bar"));
}
}
- Nick
--
You received this message because you are subscribed to the Google
Groups "Castle Project Users" group.
To post to this group, send email to
[email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "Castle
Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en.