Partilhar via


AssemblerBasedCustomFactory<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
PublicMustInheritClassAssemblerBasedCustomFactory(Of TObject AsClass, TConfiguration AsClass) _
    Inherits AssemblerBasedObjectFactory(Of TObject, TConfiguration) _
    Implements ICustomFactory
publicabstractclassAssemblerBasedCustomFactory<TObject, TConfiguration> : AssemblerBasedObjectFactory<TObject, TConfiguration>, 
    ICustomFactory
where TObject : classwhere TConfiguration : class
generic<typename TObject, typename TConfiguration>
where TObject : ref classwhere TConfiguration : ref classpublicref classAssemblerBasedCustomFactoryabstract : public AssemblerBasedObjectFactory<TObject, TConfiguration>, 
    ICustomFactory
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.Caching.BackingStoreCustomFactory
      Microsoft.Practices.EnterpriseLibrary.Caching.BackingStoreImplementations.StorageEncryptionProviderCustomFactory
      Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.LogFormatterCustomFactory
      Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.TraceListenerCustomFactory
      Microsoft.Practices.EnterpriseLibrary.Security.AuthorizationProviderCustomFactory
      Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.HashProviderCustomFactory
      Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.SymmetricCryptoProviderCustomFactory
      Microsoft.Practices.EnterpriseLibrary.Security.SecurityCacheProviderCustomFactory

See Also

AssemblerBasedCustomFactory<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.