Class NamedServiceFactory<TService>
LUCENENET specific abstract class containing common fuctionality for named service factories.
Inheritance
Assembly: DistributedLucene.Net.dll
Syntax
public abstract class NamedServiceFactory<TService> : object
Type Parameters
Name | Description |
---|---|
TService | The type of service this factory applies to. |
Properties
Name | Description |
---|---|
CodecsAssembly | The Lucene.Net.Codecs assembly or |
IsFullyTrusted | Gets a value that indicates whether the current application domain executes with full trust. |
Methods
Name | Description |
---|---|
EnsureInitialized() | Ensures the Initialize() method has been called since the last application start. This method is thread-safe. |
GetCanonicalName(Type) | Gets the type name without the suffix of the abstract base class it implements. If the class is generic, it will add the word "Generic" to the suffix in place of "`" to ensure the name is ASCII-only. |
GetServiceName(Type) | Get the service name for the class (either by convention or by attribute). |
Initialize() | Initializes the dependencies of this factory (such as using Reflection to populate the type cache). |
IsServiceType(Type) | Determines whether the given type is corresponding service for this class,
based on its generic closing type |