AssemblerBasedObjectFactory<TObject, TConfiguration> Class

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Represents a generic process to build objects of a polymorphic hierarchy based on a single configuration object.

Namespace:  Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder
Assembly:  Microsoft.Practices.EnterpriseLibrary.Common (in Microsoft.Practices.EnterpriseLibrary.Common.dll)

Syntax

'Declaration
PublicMustInheritClassAssemblerBasedObjectFactory(Of TObject AsClass, TConfiguration AsClass)
publicabstractclassAssemblerBasedObjectFactory<TObject, TConfiguration>
where TObject : classwhere TConfiguration : class
generic<typename TObject, typename TConfiguration>
where TObject : ref classwhere TConfiguration : ref classpublicref classAssemblerBasedObjectFactoryabstract
JScript does not support generic types or methods.

Type Parameters

  • TObject
    The interface or the base type to build.
  • TConfiguration
    The base configuration object type.

Remarks

This custom factory will rely assemblers to do the actual building out for a concrete type. Assemblers are implementations of the IAssembler<TObject, TConfiguration> interface. Concrete configuration objects must have an Assembler attribute to allow the factory to determine how the configuration should be interpreted.

Inheritance Hierarchy

System.Object
  Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.AssemblerBasedObjectFactory<TObject, TConfiguration>
    Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.AssemblerBasedCustomFactory<TObject, TConfiguration>
    Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionHandlerCustomFactory
    Microsoft.Practices.EnterpriseLibrary.Logging.Filters.LogFilterCustomFactory
    Microsoft.Practices.EnterpriseLibrary.PolicyInjection.CallHandlerCustomFactory
    Microsoft.Practices.EnterpriseLibrary.PolicyInjection.MatchingRuleCustomFactory

See Also

AssemblerBasedObjectFactory<TObject, TConfiguration> Members

Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder Namespace

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.