Class MetalDocumentAdapterFactory
Implementation of IGetsMetalDocumentAdapter which uses dependency injection to backfill the other dependencies, as well as the document.
Inheritance
System.Object
MetalDocumentAdapterFactory
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ZptSharp.Metal
Assembly: ZptSharp.dll
Syntax
public class MetalDocumentAdapterFactory : IGetsMetalDocumentAdapter
Constructors
| Improve this Doc View SourceMetalDocumentAdapterFactory(ISearchesForAttributes, IGetsMetalAttributeSpecs)
Initializes a new instance of the MetalDocumentAdapterFactory class.
Declaration
public MetalDocumentAdapterFactory(ISearchesForAttributes attributeSearcher, IGetsMetalAttributeSpecs specProvider)
Parameters
Type | Name | Description |
---|---|---|
ISearchesForAttributes | attributeSearcher | Attribute searcher. |
IGetsMetalAttributeSpecs | specProvider | Spec provider. |
Methods
| Improve this Doc View SourceGetMetalDocumentAdapter(IDocument)
Gets the METAL document adapter for the specified document
.
Declaration
public MetalDocumentAdapter GetMetalDocumentAdapter(IDocument document)
Parameters
Type | Name | Description |
---|---|---|
IDocument | document | A document. |
Returns
Type | Description |
---|---|
MetalDocumentAdapter | The METAL document adapter. |