public class DefaultObjectConfigurationAction extends Object implements ObjectConfigurationAction
| Constructor and Description |
|---|
DefaultObjectConfigurationAction(FileResolver resolver,
ScriptPluginFactory configurerFactory,
Object... defaultTargets) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
ObjectConfigurationAction |
from(Object script)
Adds a script to use to configure the target objects.
|
ObjectConfigurationAction |
plugin(Class<? extends Plugin> pluginClass)
Adds a
Plugin to use to configure the target objects. |
ObjectConfigurationAction |
plugin(String pluginId)
Adds a
Plugin to use to configure the target objects. |
ObjectConfigurationAction |
to(Object... targets)
Specifies some target objects to be configured.
|
public DefaultObjectConfigurationAction(FileResolver resolver, ScriptPluginFactory configurerFactory, Object... defaultTargets)
public ObjectConfigurationAction to(Object... targets)
ObjectConfigurationActionSpecifies some target objects to be configured. Any collections or arrays in the given parameters will be flattened, and the script applied to each object in the result, in the order given. Each call to this method adds some additional target objects.
to in interface ObjectConfigurationActiontargets - The target objects.public ObjectConfigurationAction from(Object script)
ObjectConfigurationActionfrom in interface ObjectConfigurationActionscript - The script. Evaluated as for Project.file(Object). However, note that
a URL can also be used, allowing the script to be fetched using HTTP, for example.public ObjectConfigurationAction plugin(Class<? extends Plugin> pluginClass)
ObjectConfigurationActionPlugin to use to configure the target objects. You can call this method multiple
times, to use multiple plugins. Scripts and plugins are applied in the order that they are added.plugin in interface ObjectConfigurationActionpluginClass - The plugin to apply.public ObjectConfigurationAction plugin(String pluginId)
ObjectConfigurationActionPlugin to use to configure the target objects. You can call this method multiple
times, to use multiple plugins. Scripts and plugins are applied in the order that they are added.plugin in interface ObjectConfigurationActionpluginId - The id of the plugin to apply.public void execute()
Copyright © 2013. All rights reserved