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:18 UTC
[19/21] lucenenet git commit: Lucene.Net.Core.Support (Codecs +
Util): License headers and usings
Lucene.Net.Core.Support (Codecs + Util): License headers and usings
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/0ce32f25
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/0ce32f25
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/0ce32f25
Branch: refs/heads/api-work
Commit: 0ce32f25745a79c6655399a73790f56af2042842
Parents: 6d7613c
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Sun Mar 12 22:11:36 2017 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Sun Mar 12 23:21:36 2017 +0700
----------------------------------------------------------------------
.../Support/Codecs/CodecNameAttribute.cs | 17 +++++++++++++
.../Support/Codecs/DefaultCodecFactory.cs | 17 +++++++++++++
.../Codecs/DefaultDocValuesFormatFactory.cs | 17 +++++++++++++
.../Codecs/DefaultPostingsFormatFactory.cs | 17 +++++++++++++
.../Codecs/DocValuesFormatNameAttribute.cs | 17 +++++++++++++
.../Support/Codecs/ICodecFactory.cs | 17 +++++++++++++
.../Support/Codecs/IDocValuesFormatFactory.cs | 17 +++++++++++++
.../Support/Codecs/IPostingsFormatFactory.cs | 17 +++++++++++++
.../Support/Codecs/IgnoreCodecAttribute.cs | 17 +++++++++++++
.../Codecs/IgnoreDocValuesFormatAttribute.cs | 17 +++++++++++++
.../Codecs/IgnorePostingsFormatAttribute.cs | 17 +++++++++++++
.../Codecs/PostingsFormatNameAttribute.cs | 17 +++++++++++++
.../Support/Util/IServiceListable.cs | 17 +++++++++++++
.../Support/Util/IgnoreServiceAttribute.cs | 25 ++++++++++++++------
.../Support/Util/NamedServiceFactory.cs | 17 +++++++++++++
.../Support/Util/ServiceNameAttribute.cs | 21 ++++++++++++----
16 files changed, 273 insertions(+), 11 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0ce32f25/src/Lucene.Net.Core/Support/Codecs/CodecNameAttribute.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Support/Codecs/CodecNameAttribute.cs b/src/Lucene.Net.Core/Support/Codecs/CodecNameAttribute.cs
index 19fb621..331c471 100644
--- a/src/Lucene.Net.Core/Support/Codecs/CodecNameAttribute.cs
+++ b/src/Lucene.Net.Core/Support/Codecs/CodecNameAttribute.cs
@@ -3,6 +3,23 @@ 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>
/// Represents an attribute that is used to name a <see cref="Codec"/>, if a name
/// other than the default <see cref="Codec"/> naming convention is desired.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0ce32f25/src/Lucene.Net.Core/Support/Codecs/DefaultCodecFactory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Support/Codecs/DefaultCodecFactory.cs b/src/Lucene.Net.Core/Support/Codecs/DefaultCodecFactory.cs
index e5273bb..1499596 100644
--- a/src/Lucene.Net.Core/Support/Codecs/DefaultCodecFactory.cs
+++ b/src/Lucene.Net.Core/Support/Codecs/DefaultCodecFactory.cs
@@ -5,6 +5,23 @@ using System.Reflection;
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>
/// LUCENENET specific class that implements the default functionality for the
/// <see cref="ICodecFactory"/>.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0ce32f25/src/Lucene.Net.Core/Support/Codecs/DefaultDocValuesFormatFactory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Support/Codecs/DefaultDocValuesFormatFactory.cs b/src/Lucene.Net.Core/Support/Codecs/DefaultDocValuesFormatFactory.cs
index 5b838a6..91e5ac3 100644
--- a/src/Lucene.Net.Core/Support/Codecs/DefaultDocValuesFormatFactory.cs
+++ b/src/Lucene.Net.Core/Support/Codecs/DefaultDocValuesFormatFactory.cs
@@ -5,6 +5,23 @@ using System.Reflection;
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>
/// LUCENENET specific class that implements the default functionality for the
/// <see cref="IDocValuesFormatFactory"/>.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0ce32f25/src/Lucene.Net.Core/Support/Codecs/DefaultPostingsFormatFactory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Support/Codecs/DefaultPostingsFormatFactory.cs b/src/Lucene.Net.Core/Support/Codecs/DefaultPostingsFormatFactory.cs
index b1e33e8..bbf7ecf 100644
--- a/src/Lucene.Net.Core/Support/Codecs/DefaultPostingsFormatFactory.cs
+++ b/src/Lucene.Net.Core/Support/Codecs/DefaultPostingsFormatFactory.cs
@@ -5,6 +5,23 @@ using System.Reflection;
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>
/// LUCENENET specific class that implements the default functionality for the
/// <see cref="IPostingsFormatFactory"/>.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0ce32f25/src/Lucene.Net.Core/Support/Codecs/DocValuesFormatNameAttribute.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Support/Codecs/DocValuesFormatNameAttribute.cs b/src/Lucene.Net.Core/Support/Codecs/DocValuesFormatNameAttribute.cs
index 742b8db..e715fa4 100644
--- a/src/Lucene.Net.Core/Support/Codecs/DocValuesFormatNameAttribute.cs
+++ b/src/Lucene.Net.Core/Support/Codecs/DocValuesFormatNameAttribute.cs
@@ -3,6 +3,23 @@ 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>
/// Represents an attribute that is used to name a <see cref="DocValuesFormat"/>, if a name
/// other than the default <see cref="DocValuesFormat"/> naming convention is desired.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0ce32f25/src/Lucene.Net.Core/Support/Codecs/ICodecFactory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Support/Codecs/ICodecFactory.cs b/src/Lucene.Net.Core/Support/Codecs/ICodecFactory.cs
index 4537fe1..8d0e9d0 100644
--- a/src/Lucene.Net.Core/Support/Codecs/ICodecFactory.cs
+++ b/src/Lucene.Net.Core/Support/Codecs/ICodecFactory.cs
@@ -1,5 +1,22 @@
\ufeffnamespace 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>
/// LUCENENET specific contract for extending the functionality of <see cref="Codec"/> implementations so
/// they can be injected with dependencies.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0ce32f25/src/Lucene.Net.Core/Support/Codecs/IDocValuesFormatFactory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Support/Codecs/IDocValuesFormatFactory.cs b/src/Lucene.Net.Core/Support/Codecs/IDocValuesFormatFactory.cs
index bfd7f7b..2c30d47 100644
--- a/src/Lucene.Net.Core/Support/Codecs/IDocValuesFormatFactory.cs
+++ b/src/Lucene.Net.Core/Support/Codecs/IDocValuesFormatFactory.cs
@@ -1,5 +1,22 @@
\ufeffnamespace 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>
/// LUCENENET specific contract for extending the functionality of <see cref="DocValuesFormat"/> implementations so
/// they can be injected with dependencies.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0ce32f25/src/Lucene.Net.Core/Support/Codecs/IPostingsFormatFactory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Support/Codecs/IPostingsFormatFactory.cs b/src/Lucene.Net.Core/Support/Codecs/IPostingsFormatFactory.cs
index 039baf8..46ceced 100644
--- a/src/Lucene.Net.Core/Support/Codecs/IPostingsFormatFactory.cs
+++ b/src/Lucene.Net.Core/Support/Codecs/IPostingsFormatFactory.cs
@@ -1,5 +1,22 @@
\ufeffnamespace 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>
/// LUCENENET specific contract for extending the functionality of <see cref="PostingsFormat"/> implementations so
/// they can be injected with dependencies.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0ce32f25/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
index eb36099..96960a5 100644
--- a/src/Lucene.Net.Core/Support/Codecs/IgnoreCodecAttribute.cs
+++ b/src/Lucene.Net.Core/Support/Codecs/IgnoreCodecAttribute.cs
@@ -3,6 +3,23 @@ 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/0ce32f25/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
index adc50f5..6ec2b6e 100644
--- a/src/Lucene.Net.Core/Support/Codecs/IgnoreDocValuesFormatAttribute.cs
+++ b/src/Lucene.Net.Core/Support/Codecs/IgnoreDocValuesFormatAttribute.cs
@@ -3,6 +3,23 @@ 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/0ce32f25/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
index 40b3ea1..b2c86ed 100644
--- a/src/Lucene.Net.Core/Support/Codecs/IgnorePostingsFormatAttribute.cs
+++ b/src/Lucene.Net.Core/Support/Codecs/IgnorePostingsFormatAttribute.cs
@@ -3,6 +3,23 @@ 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/0ce32f25/src/Lucene.Net.Core/Support/Codecs/PostingsFormatNameAttribute.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Support/Codecs/PostingsFormatNameAttribute.cs b/src/Lucene.Net.Core/Support/Codecs/PostingsFormatNameAttribute.cs
index b060110..629655a 100644
--- a/src/Lucene.Net.Core/Support/Codecs/PostingsFormatNameAttribute.cs
+++ b/src/Lucene.Net.Core/Support/Codecs/PostingsFormatNameAttribute.cs
@@ -3,6 +3,23 @@ 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>
/// Represents an attribute that is used to name a <see cref="PostingsFormat"/>, if a name
/// other than the default <see cref="PostingsFormat"/> naming convention is desired.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0ce32f25/src/Lucene.Net.Core/Support/Util/IServiceListable.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Support/Util/IServiceListable.cs b/src/Lucene.Net.Core/Support/Util/IServiceListable.cs
index 39e112c..f139600 100644
--- a/src/Lucene.Net.Core/Support/Util/IServiceListable.cs
+++ b/src/Lucene.Net.Core/Support/Util/IServiceListable.cs
@@ -3,6 +3,23 @@ using System.Collections.Generic;
namespace 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.
+ */
+
/// <summary>
/// LUCENENET specific contract that provides support for <see cref="Codecs.Codec.AvailableCodecs()"/>,
/// <see cref="Codecs.DocValuesFormat.AvailableDocValuesFormats()"/>,
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0ce32f25/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
index bd2ed3e..32d720e 100644
--- a/src/Lucene.Net.Core/Support/Util/IgnoreServiceAttribute.cs
+++ b/src/Lucene.Net.Core/Support/Util/IgnoreServiceAttribute.cs
@@ -1,11 +1,22 @@
-\ufeffusing System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Lucene.Net.Util
+\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/0ce32f25/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 06af811..068b69c 100644
--- a/src/Lucene.Net.Core/Support/Util/NamedServiceFactory.cs
+++ b/src/Lucene.Net.Core/Support/Util/NamedServiceFactory.cs
@@ -4,6 +4,23 @@ using System.Reflection;
namespace 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.
+ */
+
/// <summary>
/// LUCENENET specific abstract class containing common fuctionality for named service factories.
/// </summary>
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0ce32f25/src/Lucene.Net.Core/Support/Util/ServiceNameAttribute.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Support/Util/ServiceNameAttribute.cs b/src/Lucene.Net.Core/Support/Util/ServiceNameAttribute.cs
index ff85857..1f8c87a 100644
--- a/src/Lucene.Net.Core/Support/Util/ServiceNameAttribute.cs
+++ b/src/Lucene.Net.Core/Support/Util/ServiceNameAttribute.cs
@@ -1,11 +1,24 @@
\ufeffusing System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace 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.
+ */
+
/// <summary>
/// LUCENENET specific abstract class for <see cref="System.Attribute"/>s that can
/// be used to override the default convention-based names of services. For example,