Class TestCodecFactory
LUCENENET specific class used to add the codecs from the test framework.
Implements
ICodecFactory
IServiceListable
Inherited Members
DefaultCodecFactory.CustomCodecTypes
DefaultCodecFactory.AvailableServices
NamedServiceFactory<Codec>.m_initializationLock
NamedServiceFactory<Codec>.EnsureInitialized()
NamedServiceFactory<Codec>.CodecsAssembly
NamedServiceFactory<Codec>.IsFullyTrusted
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).
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 |
|
Overrides
Implements
Lucene.Net.Codecs.ICodecFactory
Lucene.Net.Util.IServiceListable