Skip to content

[Stable plugin api] Extensible annotation #89903

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions libs/logging/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
import org.elasticsearch.gradle.transform.UnzipTransform

import java.util.stream.Collectors

/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@
package org.elasticsearch.plugin.analysis.api;

import org.apache.lucene.analysis.Analyzer;
import org.elasticsearch.plugin.api.Extensible;
import org.elasticsearch.plugin.api.Nameable;

/**
* An analysis component used to create Analyzers.
*/
@Extensible
public interface AnalyzerFactory extends Nameable {
/**
* Returns a lucene org.apache.lucene.analysis.Analyzer instance.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

package org.elasticsearch.plugin.analysis.api;

import org.elasticsearch.plugin.api.Extensible;
import org.elasticsearch.plugin.api.Nameable;

import java.io.Reader;
Expand All @@ -16,6 +17,7 @@
* An analysis component used to create char filters.
*
*/
@Extensible
public interface CharFilterFactory extends Nameable {
/**
* Wraps the given Reader with a CharFilter.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@
package org.elasticsearch.plugin.analysis.api;

import org.apache.lucene.analysis.TokenStream;
import org.elasticsearch.plugin.api.Extensible;
import org.elasticsearch.plugin.api.Nameable;

/**
* An analysis component used to create token filters.
*/
@Extensible
public interface TokenFilterFactory extends Nameable {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@
package org.elasticsearch.plugin.analysis.api;

import org.apache.lucene.analysis.Tokenizer;
import org.elasticsearch.plugin.api.Extensible;
import org.elasticsearch.plugin.api.Nameable;

/**
* An analysis component used to create tokenizers.
*/
@Extensible
public interface TokenizerFactory extends Nameable {

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/

package org.elasticsearch.plugin.api;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.TYPE;

/**
* Marker for things that can be loaded by component loader.
*
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(value = { TYPE })
public @interface Extensible {
}