Hi there,

For a project I'm working on I've written a subclass of ARDataBinder
(say CustomARDataBinder) which adds some custom binding code by
overriding the BindSpecialObjectInstance method.

I'd like my controllers to inherit from ARSmartDispatcherController
but use my CustomARDataBinder for binding instead of a plain
ARDataBinder.

Unfortunately I can't do this as ARSmartDispatcherController doesn't
have a constructor into which I can pass my new databinder.  It's base
class, SmartDispatcher does have such a constructor though.

What I would like to do is add the relevant constructor to
ARSmartDispatcherController, so that we end up with:

          /// <summary>
          /// Initializes a new instance of the <see
cref="ARSmartDispatcherController"/> class.
          /// </summary>
          public ARSmartDispatcherController() : base(new ARDataBinder
())
          {
          }

+        /// <summary>
+        /// Initializes a new instance of the <see
cref="ARSmartDispatcherController"/> class.
+        /// </summary>
+        /// <param name="binder">The binder.</param>
+        public ARSmartDispatcherController(ARDataBinder binder) : base
(binder)
+        {
+        }

Would it be OK for me to submit a patch for this?

Also I notice that the ARSmartDispatcherController.BindObject and
BindObjectInstance methods are not virtual.  Would there be any
argument against making these virtual?

Many thanks,

James

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Development List" 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-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to