Examining the Object Factory

  • Updated

This article shows how to look at objectfactory.config and determine if you are using a strategy, and whether it is using a .DLL or a file from the App_Code folder.

Go to Siteroot/objectFactory.config .

Here is the file from a min site:

<objectfactory>
  <objectstrategies>
          <add name="Content">
                 <strategies>
                         <add name="GoogleGeoCoder" type="Cms.Extensions.GoogleGeoCoder.ContentStrategy, Cms.Extensions.GoogleGeoCoder"></add>
                 </strategies>
          </add>
          <add name="User">
                 <strategies>
                         <add name="GoogleGeoCoder" type="Cms.Extensions.GoogleGeoCoder.UserStrategy, Cms.Extensions.GoogleGeoCoder"></add>
                 </strategies>
          </add>
          <add name="CatalogEntry">
                 <strategies>
                         <add name="GoogleGeoCoder" type="Cms.Extensions.GoogleGeoCoder.CatalogEntryStrategy, Cms.Extensions.GoogleGeoCoder"></add>
                 </strategies>
          </add>
          <add name="Form">
          <strategies>
              <add name="DxHFormStrategy" type="Ektron.Cms.Extensions.DxHFormStrategy"></add>
          </strategies>
          </add>
  </objectstrategies>
</objectfactory>


When you have this (comma present) it is using a .DLL, and if you upgrade you should recompile it against the new code:

 

type="Cms.Extensions.GoogleGeoCoder.ContentStrategy, Cms.Extensions.GoogleGeoCoder"/>


If you have this (no comma present) it is NOT a .DLL and you do not need to take further steps is you upgrade.