Class ScriptsAutoConfiguration
java.lang.Object
com.netflix.genie.web.spring.autoconfigure.scripts.ScriptsAutoConfiguration
@Configuration
@EnableConfigurationProperties({AgentLauncherSelectorScriptProperties.class,ClusterSelectorScriptProperties.class,CommandSelectorManagedScriptProperties.class,ScriptManagerProperties.class})
public class ScriptsAutoConfiguration
extends Object
Configuration for script extensions.
- Since:
- 4.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.netflix.genie.web.spring.autoconfigure.scripts.ScriptsAutoConfiguration.ManagedScriptPreLoader
managedScriptPreLoader
(List<ManagedScript> managedScripts) Create aSmartInitializingSingleton
that "warms" known scripts so they're ready for execution on first invocation.
-
Constructor Details
-
ScriptsAutoConfiguration
public ScriptsAutoConfiguration()
-
-
Method Details
-
managedScriptPreLoader
@Bean public com.netflix.genie.web.spring.autoconfigure.scripts.ScriptsAutoConfiguration.ManagedScriptPreLoader managedScriptPreLoader(List<ManagedScript> managedScripts) Create aSmartInitializingSingleton
that "warms" known scripts so they're ready for execution on first invocation.- Parameters:
managedScripts
- the managed scripts, if any exist in context- Returns:
- A
ScriptsAutoConfiguration.ManagedScriptPreLoader
that runs after the application context is ready
-