Compartir a través de


ICustomFactory Interface

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 the process to build instances of a type.

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

Syntax

'Declaration
PublicInterfaceICustomFactory
publicinterfaceICustomFactory
publicinterface classICustomFactory
publicinterface ICustomFactory

Remarks

Custom factories are used by the ConfiguredObjectStrategy strategy to create Enterprise Library objects. Usually factories will query a configuration source for the configuration objects that describe the requested object, and will perform the necessary conversions on the configuration information to create an instance of the type. The objects the factory can build can be part of a hierarchy. Type AssemblerBasedCustomFactory<TObject, TConfiguration> provides a generic implementation of a factory that builds polymorphic hierarchies.

See Also

ICustomFactory Members

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

Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.ConfiguredObjectStrategy

Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.CustomFactoryAttribute

Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.AssemblerBasedCustomFactory<TObject, TConfiguration>

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.