Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class TestCodecFactory

    LUCENENET specific class used to add the codecs from the test framework.

    Inheritance
    object
    NamedServiceFactory<Codec>
    DefaultCodecFactory
    TestCodecFactory
    Implements
    ICodecFactory
    IServiceListable
    Inherited Members
    DefaultCodecFactory.CustomCodecTypes
    DefaultCodecFactory.ScanForCodecs(IEnumerable<Assembly>)
    DefaultCodecFactory.ScanForCodecs(Assembly)
    DefaultCodecFactory.PutCodecType(Type)
    DefaultCodecFactory.GetCodec(string)
    DefaultCodecFactory.GetCodec(Type)
    DefaultCodecFactory.NewCodec(Type)
    DefaultCodecFactory.GetCodecType(string)
    DefaultCodecFactory.AvailableServices
    NamedServiceFactory<Codec>.m_initializationLock
    NamedServiceFactory<Codec>.EnsureInitialized()
    NamedServiceFactory<Codec>.CodecsAssembly
    NamedServiceFactory<Codec>.GetServiceName(Type)
    NamedServiceFactory<Codec>.GetCanonicalName(Type)
    NamedServiceFactory<Codec>.IsFullyTrusted
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Codecs
    Assembly: Lucene.Net.TestFramework.dll
    Syntax
    public class TestCodecFactory : DefaultCodecFactory, ICodecFactory, IServiceListable

    Methods

    Initialize()

    Initializes the codec type cache with the known Lucene.Net.Codecs.Codec types. Override this method (and optionally call base.Initialize()) to add your own Lucene.Net.Codecs.Codec types by calling PutCodecType(Type) or ScanForCodecs(Assembly).

    If two types have the same name by using the Lucene.Net.Codecs.CodecNameAttribute, the last one registered wins.
    Declaration
    protected override void Initialize()
    Overrides
    Lucene.Net.Codecs.DefaultCodecFactory.Initialize()

    IsServiceType(Type)

    Determines whether the given type is corresponding service for this class, based on its generic closing type Lucene.Net.Codecs.Codec.

    Declaration
    protected override bool IsServiceType(Type type)
    Parameters
    Type Name Description
    Type type

    The Type of service to analyze.

    Returns
    Type Description
    bool

    true if the service subclasses Lucene.Net.Codecs.Codec, is public, and is not abstract; otherwise false.

    Overrides
    NamedServiceFactory<Codec>.IsServiceType(Type)

    Implements

    Lucene.Net.Codecs.ICodecFactory
    Lucene.Net.Util.IServiceListable
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.