You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2017/03/12 16:38:20 UTC

[21/21] lucenenet git commit: Renamed IgnoreXxxAttribute (s) to ExcludeXxxFromScanAttribute (s) to make it more clear what they do and added documentation comments.

Renamed IgnoreXxxAttribute (s) to ExcludeXxxFromScanAttribute (s) to make it more clear what they do and added documentation comments.


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/00c134df
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/00c134df
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/00c134df

Branch: refs/heads/api-work
Commit: 00c134df0ceb43984721e0d6b5c2f18bb2c6ca8e
Parents: c89d4dd
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Sun Mar 12 22:58:30 2017 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Sun Mar 12 23:21:40 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Core/Codecs/Codec.cs             |  2 +-
 src/Lucene.Net.Core/Codecs/DocValuesFormat.cs   |  2 +-
 src/Lucene.Net.Core/Codecs/PostingsFormat.cs    |  2 +-
 src/Lucene.Net.Core/Lucene.Net.csproj           |  8 ++---
 .../Codecs/ExcludeCodecFromScanAttribute.cs     | 35 ++++++++++++++++++++
 .../ExcludeDocValuesFormatFromScanAttribute.cs  | 35 ++++++++++++++++++++
 .../ExcludePostingsFormatFromScanAttribute.cs   | 35 ++++++++++++++++++++
 .../Support/Codecs/IgnoreCodecAttribute.cs      | 27 ---------------
 .../Codecs/IgnoreDocValuesFormatAttribute.cs    | 27 ---------------
 .../Codecs/IgnorePostingsFormatAttribute.cs     | 27 ---------------
 .../Support/Util/ExcludeServiceAttribute.cs     | 23 +++++++++++++
 .../Support/Util/IgnoreServiceAttribute.cs      | 23 -------------
 .../Support/Util/NamedServiceFactory.cs         |  2 +-
 .../Index/RandomCodec.cs                        |  2 +-
 .../Support/Codecs/TestDefaultCodecFactory.cs   |  4 +--
 .../Codecs/TestDefaultDocValuesFormatFactory.cs |  4 +--
 .../Codecs/TestDefaultPostingsFormatFactory.cs  |  4 +--
 17 files changed, 143 insertions(+), 119 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/00c134df/src/Lucene.Net.Core/Codecs/Codec.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Codecs/Codec.cs b/src/Lucene.Net.Core/Codecs/Codec.cs
index cd16a39..e50e529 100644
--- a/src/Lucene.Net.Core/Codecs/Codec.cs
+++ b/src/Lucene.Net.Core/Codecs/Codec.cs
@@ -35,7 +35,7 @@ namespace Lucene.Net.Codecs
     ///     <item>Subclass <see cref="DefaultCodecFactory"/> and add the line 
     ///         <c>base.ScanForCodecs(typeof(YourCodec).GetTypeInfo().Assembly)</c> 
     ///         to the constructor. If you have any codec classes in your assembly 
-    ///         that are not meant for reading, you can add the <see cref="IgnoreCodecAttribute"/> 
+    ///         that are not meant for reading, you can add the <see cref="ExcludeCodecFromScanAttribute"/> 
     ///         to them so they are ignored by the scan.</item>
     ///     <item>set the new <see cref="ICodecFactory"/> by calling <see cref="SetCodecFactory"/> at application startup.</item>
     /// </list>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/00c134df/src/Lucene.Net.Core/Codecs/DocValuesFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Codecs/DocValuesFormat.cs b/src/Lucene.Net.Core/Codecs/DocValuesFormat.cs
index e34dc68..dff8dfb 100644
--- a/src/Lucene.Net.Core/Codecs/DocValuesFormat.cs
+++ b/src/Lucene.Net.Core/Codecs/DocValuesFormat.cs
@@ -38,7 +38,7 @@ namespace Lucene.Net.Codecs
     ///     <item>Subclass <see cref="DefaultDocValuesFormatFactory"/> and add the line
     ///         <c>base.ScanForDocValuesFormats(typeof(YourDocValuesFormat).GetTypeInfo().Assembly)</c>
     ///         to the constructor. If you have any format classes in your assembly 
-    ///         that are not meant for reading, you can add the <see cref="IgnoreDocValuesFormatAttribute"/> 
+    ///         that are not meant for reading, you can add the <see cref="ExcludeDocValuesFormatFromScanAttribute"/> 
     ///         to them so they are ignored by the scan.</item>
     ///     <item>Set the new <see cref="IDocValuesFormatFactory"/> by calling <see cref="SetDocValuesFormatFactory(IDocValuesFormatFactory)"/>
     ///         at application startup.</item>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/00c134df/src/Lucene.Net.Core/Codecs/PostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Codecs/PostingsFormat.cs b/src/Lucene.Net.Core/Codecs/PostingsFormat.cs
index b1b1af8..71c7169 100644
--- a/src/Lucene.Net.Core/Codecs/PostingsFormat.cs
+++ b/src/Lucene.Net.Core/Codecs/PostingsFormat.cs
@@ -36,7 +36,7 @@ namespace Lucene.Net.Codecs
     ///     <item>Subclass <see cref="DefaultPostingsFormatFactory"/> and add the line 
     ///         <c>base.ScanForPostingsFormats(typeof(YourPostingsFormat).GetTypeInfo().Assembly)</c> 
     ///         to the constructor. If you have any format classes in your assembly 
-    ///         that are not meant for reading, you can add the <see cref="IgnorePostingsFormatAttribute"/> 
+    ///         that are not meant for reading, you can add the <see cref="ExcludePostingsFormatFromScanAttribute"/> 
     ///         to them so they are ignored by the scan.</item>
     ///     <item>Set the new <see cref="IPostingsFormatFactory"/> by calling <see cref="SetPostingsFormatFactory(IPostingsFormatFactory)"/> 
     ///         at application startup.</item>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/00c134df/src/Lucene.Net.Core/Lucene.Net.csproj
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Lucene.Net.csproj b/src/Lucene.Net.Core/Lucene.Net.csproj
index edf05da..7b667d3 100644
--- a/src/Lucene.Net.Core/Lucene.Net.csproj
+++ b/src/Lucene.Net.Core/Lucene.Net.csproj
@@ -623,9 +623,9 @@
     <Compile Include="Support\Codecs\DocValuesFormatNameAttribute.cs" />
     <Compile Include="Support\Codecs\ICodecFactory.cs" />
     <Compile Include="Support\Codecs\IDocValuesFormatFactory.cs" />
-    <Compile Include="Support\Codecs\IgnoreCodecAttribute.cs" />
-    <Compile Include="Support\Codecs\IgnoreDocValuesFormatAttribute.cs" />
-    <Compile Include="Support\Codecs\IgnorePostingsFormatAttribute.cs" />
+    <Compile Include="Support\Codecs\ExcludeCodecFromScanAttribute.cs" />
+    <Compile Include="Support\Codecs\ExcludeDocValuesFormatFromScanAttribute.cs" />
+    <Compile Include="Support\Codecs\ExcludePostingsFormatFromScanAttribute.cs" />
     <Compile Include="Support\Codecs\IPostingsFormatFactory.cs" />
     <Compile Include="Support\Codecs\PostingsFormatNameAttribute.cs" />
     <Compile Include="Support\Compatibility\BinaryReaderDataInput.cs" />
@@ -705,7 +705,7 @@
     <Compile Include="Support\SharpZipLib.cs" />
     <Compile Include="Support\ThreadClass.cs" />
     <Compile Include="Support\ThreadLock.cs" />
-    <Compile Include="Support\Util\IgnoreServiceAttribute.cs" />
+    <Compile Include="Support\Util\ExcludeServiceAttribute.cs" />
     <Compile Include="Support\Util\IServiceListable.cs" />
     <Compile Include="Support\Util\NamedServiceFactory.cs" />
     <Compile Include="Support\Util\ServiceNameAttribute.cs" />

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/00c134df/src/Lucene.Net.Core/Support/Codecs/ExcludeCodecFromScanAttribute.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Support/Codecs/ExcludeCodecFromScanAttribute.cs b/src/Lucene.Net.Core/Support/Codecs/ExcludeCodecFromScanAttribute.cs
new file mode 100644
index 0000000..0892271
--- /dev/null
+++ b/src/Lucene.Net.Core/Support/Codecs/ExcludeCodecFromScanAttribute.cs
@@ -0,0 +1,35 @@
+\ufeffusing Lucene.Net.Util;
+using System;
+
+namespace Lucene.Net.Codecs
+{
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
+    /// <summary>
+    /// When placed on a class that subclasses <see cref="Codec"/>, adding this
+    /// attribute will exclude the type from consideration in the 
+    /// <see cref="DefaultCodecFactory.ScanForCodecs(System.Reflection.Assembly)"/> method.
+    /// <para/>
+    /// However, the <see cref="Codec"/> type can still be added manually using
+    /// <see cref="DefaultCodecFactory.PutCodecType(Type)"/>.
+    /// </summary>
+    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
+    public class ExcludeCodecFromScanAttribute : ExcludeServiceAttribute
+    {
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/00c134df/src/Lucene.Net.Core/Support/Codecs/ExcludeDocValuesFormatFromScanAttribute.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Support/Codecs/ExcludeDocValuesFormatFromScanAttribute.cs b/src/Lucene.Net.Core/Support/Codecs/ExcludeDocValuesFormatFromScanAttribute.cs
new file mode 100644
index 0000000..0d99954
--- /dev/null
+++ b/src/Lucene.Net.Core/Support/Codecs/ExcludeDocValuesFormatFromScanAttribute.cs
@@ -0,0 +1,35 @@
+\ufeffusing Lucene.Net.Util;
+using System;
+
+namespace Lucene.Net.Codecs
+{
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
+    /// <summary>
+    /// When placed on a class that subclasses <see cref="DocValuesFormat"/>, adding this
+    /// attribute will exclude the type from consideration in the 
+    /// <see cref="DefaultDocValuesFormatFactory.ScanForDocValuesFormats(System.Reflection.Assembly)"/> method.
+    /// <para/>
+    /// However, the <see cref="DocValuesFormat"/> type can still be added manually using
+    /// <see cref="DefaultDocValuesFormatFactory.PutDocValuesFormatType(Type)"/>.
+    /// </summary>
+    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
+    public class ExcludeDocValuesFormatFromScanAttribute : ExcludeServiceAttribute
+    {
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/00c134df/src/Lucene.Net.Core/Support/Codecs/ExcludePostingsFormatFromScanAttribute.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Support/Codecs/ExcludePostingsFormatFromScanAttribute.cs b/src/Lucene.Net.Core/Support/Codecs/ExcludePostingsFormatFromScanAttribute.cs
new file mode 100644
index 0000000..b499c40
--- /dev/null
+++ b/src/Lucene.Net.Core/Support/Codecs/ExcludePostingsFormatFromScanAttribute.cs
@@ -0,0 +1,35 @@
+\ufeffusing Lucene.Net.Util;
+using System;
+
+namespace Lucene.Net.Codecs
+{
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
+    /// <summary>
+    /// When placed on a class that subclasses <see cref="PostingsFormat"/>, adding this
+    /// attribute will exclude the type from consideration in the 
+    /// <see cref="DefaultPostingsFormatFactory.ScanForPostingsFormats(System.Reflection.Assembly)"/> method.
+    /// <para/>
+    /// However, the <see cref="PostingsFormat"/> type can still be added manually using
+    /// <see cref="DefaultPostingsFormatFactory.PutPostingsFormatType(Type)"/>.
+    /// </summary>
+    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
+    public class ExcludePostingsFormatFromScanAttribute : ExcludeServiceAttribute
+    {
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/00c134df/src/Lucene.Net.Core/Support/Codecs/IgnoreCodecAttribute.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Support/Codecs/IgnoreCodecAttribute.cs b/src/Lucene.Net.Core/Support/Codecs/IgnoreCodecAttribute.cs
deleted file mode 100644
index 96960a5..0000000
--- a/src/Lucene.Net.Core/Support/Codecs/IgnoreCodecAttribute.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-\ufeffusing Lucene.Net.Util;
-using System;
-
-namespace Lucene.Net.Codecs
-{
-    /*
-     * Licensed to the Apache Software Foundation (ASF) under one or more
-     * contributor license agreements.  See the NOTICE file distributed with
-     * this work for additional information regarding copyright ownership.
-     * The ASF licenses this file to You under the Apache License, Version 2.0
-     * (the "License"); you may not use this file except in compliance with
-     * the License.  You may obtain a copy of the License at
-     *
-     *     http://www.apache.org/licenses/LICENSE-2.0
-     *
-     * Unless required by applicable law or agreed to in writing, software
-     * distributed under the License is distributed on an "AS IS" BASIS,
-     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-     * See the License for the specific language governing permissions and
-     * limitations under the License.
-     */
-
-    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
-    public class IgnoreCodecAttribute : IgnoreServiceAttribute
-    {
-    }
-}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/00c134df/src/Lucene.Net.Core/Support/Codecs/IgnoreDocValuesFormatAttribute.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Support/Codecs/IgnoreDocValuesFormatAttribute.cs b/src/Lucene.Net.Core/Support/Codecs/IgnoreDocValuesFormatAttribute.cs
deleted file mode 100644
index 6ec2b6e..0000000
--- a/src/Lucene.Net.Core/Support/Codecs/IgnoreDocValuesFormatAttribute.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-\ufeffusing Lucene.Net.Util;
-using System;
-
-namespace Lucene.Net.Codecs
-{
-    /*
-     * Licensed to the Apache Software Foundation (ASF) under one or more
-     * contributor license agreements.  See the NOTICE file distributed with
-     * this work for additional information regarding copyright ownership.
-     * The ASF licenses this file to You under the Apache License, Version 2.0
-     * (the "License"); you may not use this file except in compliance with
-     * the License.  You may obtain a copy of the License at
-     *
-     *     http://www.apache.org/licenses/LICENSE-2.0
-     *
-     * Unless required by applicable law or agreed to in writing, software
-     * distributed under the License is distributed on an "AS IS" BASIS,
-     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-     * See the License for the specific language governing permissions and
-     * limitations under the License.
-     */
-
-    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
-    public class IgnoreDocValuesFormatAttribute : IgnoreServiceAttribute
-    {
-    }
-}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/00c134df/src/Lucene.Net.Core/Support/Codecs/IgnorePostingsFormatAttribute.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Support/Codecs/IgnorePostingsFormatAttribute.cs b/src/Lucene.Net.Core/Support/Codecs/IgnorePostingsFormatAttribute.cs
deleted file mode 100644
index b2c86ed..0000000
--- a/src/Lucene.Net.Core/Support/Codecs/IgnorePostingsFormatAttribute.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-\ufeffusing Lucene.Net.Util;
-using System;
-
-namespace Lucene.Net.Codecs
-{
-    /*
-     * Licensed to the Apache Software Foundation (ASF) under one or more
-     * contributor license agreements.  See the NOTICE file distributed with
-     * this work for additional information regarding copyright ownership.
-     * The ASF licenses this file to You under the Apache License, Version 2.0
-     * (the "License"); you may not use this file except in compliance with
-     * the License.  You may obtain a copy of the License at
-     *
-     *     http://www.apache.org/licenses/LICENSE-2.0
-     *
-     * Unless required by applicable law or agreed to in writing, software
-     * distributed under the License is distributed on an "AS IS" BASIS,
-     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-     * See the License for the specific language governing permissions and
-     * limitations under the License.
-     */
-
-    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
-    public class IgnorePostingsFormatAttribute : IgnoreServiceAttribute
-    {
-    }
-}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/00c134df/src/Lucene.Net.Core/Support/Util/ExcludeServiceAttribute.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Support/Util/ExcludeServiceAttribute.cs b/src/Lucene.Net.Core/Support/Util/ExcludeServiceAttribute.cs
new file mode 100644
index 0000000..be6c4d0
--- /dev/null
+++ b/src/Lucene.Net.Core/Support/Util/ExcludeServiceAttribute.cs
@@ -0,0 +1,23 @@
+\ufeffnamespace Lucene.Net.Util
+{
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
+    public abstract class ExcludeServiceAttribute : System.Attribute
+    {
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/00c134df/src/Lucene.Net.Core/Support/Util/IgnoreServiceAttribute.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Support/Util/IgnoreServiceAttribute.cs b/src/Lucene.Net.Core/Support/Util/IgnoreServiceAttribute.cs
deleted file mode 100644
index 32d720e..0000000
--- a/src/Lucene.Net.Core/Support/Util/IgnoreServiceAttribute.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-\ufeffnamespace Lucene.Net.Util
-{
-    /*
-     * Licensed to the Apache Software Foundation (ASF) under one or more
-     * contributor license agreements.  See the NOTICE file distributed with
-     * this work for additional information regarding copyright ownership.
-     * The ASF licenses this file to You under the Apache License, Version 2.0
-     * (the "License"); you may not use this file except in compliance with
-     * the License.  You may obtain a copy of the License at
-     *
-     *     http://www.apache.org/licenses/LICENSE-2.0
-     *
-     * Unless required by applicable law or agreed to in writing, software
-     * distributed under the License is distributed on an "AS IS" BASIS,
-     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-     * See the License for the specific language governing permissions and
-     * limitations under the License.
-     */
-
-    public abstract class IgnoreServiceAttribute : System.Attribute
-    {
-    }
-}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/00c134df/src/Lucene.Net.Core/Support/Util/NamedServiceFactory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Support/Util/NamedServiceFactory.cs b/src/Lucene.Net.Core/Support/Util/NamedServiceFactory.cs
index 068b69c..0ca474b 100644
--- a/src/Lucene.Net.Core/Support/Util/NamedServiceFactory.cs
+++ b/src/Lucene.Net.Core/Support/Util/NamedServiceFactory.cs
@@ -65,7 +65,7 @@ namespace Lucene.Net.Util
                 type.GetTypeInfo().IsPublic &&
                 !type.GetTypeInfo().IsAbstract &&
                 typeof(TService).GetTypeInfo().IsAssignableFrom(type) &&
-                type.GetTypeInfo().GetCustomAttribute<IgnoreServiceAttribute>(inherit: true) == null;
+                type.GetTypeInfo().GetCustomAttribute<ExcludeServiceAttribute>(inherit: true) == null;
         }
 
         /// <summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/00c134df/src/Lucene.Net.TestFramework/Index/RandomCodec.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Index/RandomCodec.cs b/src/Lucene.Net.TestFramework/Index/RandomCodec.cs
index ad380de..5ec3003 100644
--- a/src/Lucene.Net.TestFramework/Index/RandomCodec.cs
+++ b/src/Lucene.Net.TestFramework/Index/RandomCodec.cs
@@ -65,7 +65,7 @@ namespace Lucene.Net.Index
     /// documents in different orders and the test will still be deterministic
     /// and reproducable.
     /// </summary>
-    [IgnoreCodec] // LUCENENET specific - we don't want this codec to replace Lucene46Codec during testing - some of these codecs are read-only
+    [ExcludeCodecFromScan] // LUCENENET specific - we don't want this codec to replace Lucene46Codec during testing - some of these codecs are read-only
     public class RandomCodec : Lucene46Codec
     {
         /// <summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/00c134df/src/Lucene.Net.Tests/Support/Codecs/TestDefaultCodecFactory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/Support/Codecs/TestDefaultCodecFactory.cs b/src/Lucene.Net.Tests/Support/Codecs/TestDefaultCodecFactory.cs
index 1d611bc..d8c0fd4 100644
--- a/src/Lucene.Net.Tests/Support/Codecs/TestDefaultCodecFactory.cs
+++ b/src/Lucene.Net.Tests/Support/Codecs/TestDefaultCodecFactory.cs
@@ -425,7 +425,7 @@ namespace Lucene.Net.Codecs
         }
     }
 
-    [IgnoreCodec]
+    [ExcludeCodecFromScan]
     [CodecName("FooBar")]
     public class CustomNamedCodec : Codec
     {
@@ -494,7 +494,7 @@ namespace Lucene.Net.Codecs
         }
     }
 
-    [IgnoreCodec]
+    [ExcludeCodecFromScan]
     [CodecName("My-Codec|With-Bad_Name")]
     public class InvalidNamedCodec : Codec
     {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/00c134df/src/Lucene.Net.Tests/Support/Codecs/TestDefaultDocValuesFormatFactory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/Support/Codecs/TestDefaultDocValuesFormatFactory.cs b/src/Lucene.Net.Tests/Support/Codecs/TestDefaultDocValuesFormatFactory.cs
index 53f4f87..624e8db 100644
--- a/src/Lucene.Net.Tests/Support/Codecs/TestDefaultDocValuesFormatFactory.cs
+++ b/src/Lucene.Net.Tests/Support/Codecs/TestDefaultDocValuesFormatFactory.cs
@@ -264,7 +264,7 @@ namespace Lucene.Net.Codecs
         }
     }
 
-    [IgnoreDocValuesFormat]
+    [ExcludeDocValuesFormatFromScan]
     [DocValuesFormatName("FooBar")]
     public class CustomNamedDocValuesFormat : DocValuesFormat
     {
@@ -279,7 +279,7 @@ namespace Lucene.Net.Codecs
         }
     }
 
-    [IgnoreDocValuesFormat]
+    [ExcludeDocValuesFormatFromScan]
     [DocValuesFormatName("My-DocValuesFormat|With-Bad_Name")]
     public class InvalidNamedDocValuesFormat : DocValuesFormat
     {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/00c134df/src/Lucene.Net.Tests/Support/Codecs/TestDefaultPostingsFormatFactory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/Support/Codecs/TestDefaultPostingsFormatFactory.cs b/src/Lucene.Net.Tests/Support/Codecs/TestDefaultPostingsFormatFactory.cs
index 4b51cc7..c40ee11 100644
--- a/src/Lucene.Net.Tests/Support/Codecs/TestDefaultPostingsFormatFactory.cs
+++ b/src/Lucene.Net.Tests/Support/Codecs/TestDefaultPostingsFormatFactory.cs
@@ -272,7 +272,7 @@ namespace Lucene.Net.Codecs
         }
     }
 
-    [IgnorePostingsFormat]
+    [ExcludePostingsFormatFromScan]
     [PostingsFormatName("FooBar")]
     public class CustomNamedPostingsFormat : PostingsFormat
     {
@@ -287,7 +287,7 @@ namespace Lucene.Net.Codecs
         }
     }
 
-    [IgnorePostingsFormat]
+    [ExcludePostingsFormatFromScan]
     [PostingsFormatName("My-PostingsFormat|With-Bad_Name")]
     public class InvalidNamedPostingsFormat : PostingsFormat
     {