Class RunPlugin
- java.lang.Object
- 
- software.amazon.smithy.build.plugins.RunPlugin
 
- 
- All Implemented Interfaces:
- SmithyBuildPlugin
 
 public final class RunPlugin extends java.lang.Object implements SmithyBuildPlugin Runs a process-based plugin.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classRunPlugin.Settings
 - 
Constructor SummaryConstructors Constructor Description RunPlugin()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(PluginContext context)Executes the plugin, creating any number of artifacts.java.lang.StringgetName()Gets the name of the plugin.booleanrequiresValidModel()Plugins can choose whether or not to create artifacts based on whether or not the projection encountered error or unsuppressed danger events.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface software.amazon.smithy.build.SmithyBuildPluginisSerial
 
- 
 
- 
- 
- 
Method Detail- 
getNamepublic java.lang.String getName() Description copied from interface:SmithyBuildPluginGets the name of the plugin.- Specified by:
- getNamein interface- SmithyBuildPlugin
- Returns:
- Returns the name (e.g., "MyPlugin").
 
 - 
requiresValidModelpublic boolean requiresValidModel() Description copied from interface:SmithyBuildPluginPlugins can choose whether or not to create artifacts based on whether or not the projection encountered error or unsuppressed danger events.By default plugins require that there are no errors or danger events for a given projected model. - Specified by:
- requiresValidModelin interface- SmithyBuildPlugin
- Returns:
- Returns true if the plugin should only be called if there are no error or unsuppressed danger violations for the projection.
 
 - 
executepublic void execute(PluginContext context) Description copied from interface:SmithyBuildPluginExecutes the plugin, creating any number of artifacts.- Specified by:
- executein interface- SmithyBuildPlugin
- Parameters:
- context- Plugin context for build execution.
 
 
- 
 
-