Uploaded image for project: 'Spring.NET'
  1. Spring.NET
  2. SPRNET-1296

IConfigurableFactoryObject should not use ConfigureObject method to configure the product's factory

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.0, 1.3.0 RC1
    • Fix Version/s: 1.3.0
    • Component/s: Spring-NET-CORE
    • Labels:
      None

      Description

      Hi,

      This interface allows you to configure the object created by the IFactoryObject.GetObject method.
      Code is in AbstractObjectFactory.GetObjectFromFactoryObject method :

      if (factory is IConfigurableFactoryObject)
      {
      IConfigurableFactoryObject configurableFactory = (IConfigurableFactoryObject)factory;

      if (configurableFactory.ProductTemplate != null)
      {
      instance = ConfigureObject(instance,
      String.Format("

      {0}

      .ProductTemplate", objectName),
      configurableFactory.ProductTemplate);
      }
      }

      When calling ConfigureObject, the object is a candidate for all post processing stuffs like auto proxies, and a proxy can be applied on the product template definition.

        Attachments

          Activity

            People

            • Assignee:
              bbaia Bruno Baia
              Reporter:
              bbaia Bruno Baia
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: