Compartir a través de


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

Static facade for the generic building mechanism based on ObjectBuilder.

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

Syntax

'Declaration
PublicNotInheritableClassEnterpriseLibraryFactory
publicstaticclassEnterpriseLibraryFactory
publicref classEnterpriseLibraryFactoryabstractsealed
publicfinalclass EnterpriseLibraryFactory

Remarks

The facade uses a shared stateless IBuilder<TStageEnum> instance configured with the strategies that perform the creation of objects in the Enterprise Library.

The strategies used by the EnterpriseLibraryFactory are:

The creation request can provide an IConfigurationSource to be used by the strategies that need access to configuration. If such a configuration source is not provided, a default configuration source will be requested to the ConfigurationSourceFactory. In any case, the configuration source is made available to the strategies through a transient IConfigurationObjectPolicy.

The facade keeps a shared ConfigurationReflectionCache that is made available to the strategies through a transient IReflectionCachePolicy.

Inheritance Hierarchy

System.Object
  Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.EnterpriseLibraryFactory

See Also

EnterpriseLibraryFactory Members

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

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

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.