You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to have an extension and use another extension.
For example, I want to create a new plugin that will use the AwsCredentialsSupplier class which is provided by the AWS Plugin extension.
public class NewExtensionsPlugin implements ExtensionPlugin {
@DataPrepperPluginConstructor
public NewExtensionsPlugin(AwsCredentialsSupplier awsCredentialsSupplier) {
}
Currently, this is not supported.
See the following code where this is not yet allowed:
thrownewInvalidPluginDefinitionException("No arguments are permitted for extensions constructors.");
}
returnnewObject[0];
}
}
Proposed solution:
Allow ExtensionPlugin classes to add an annotation which defines what components the provide. This can allow the plugin framework to create a dependency tree.
I want to have an extension and use another extension.
For example, I want to create a new plugin that will use the
AwsCredentialsSupplier
class which is provided by the AWS Plugin extension.Currently, this is not supported.
See the following code where this is not yet allowed:
data-prepper/data-prepper-core/src/main/java/org/opensearch/dataprepper/plugin/ExtensionLoader.java
Lines 54 to 62 in affe0b2
Proposed solution:
Allow
ExtensionPlugin
classes to add an annotation which defines what components the provide. This can allow the plugin framework to create a dependency tree.For example, in the
AwsPlugin
:What needs to happen:
The text was updated successfully, but these errors were encountered: