public class LayeredSpec extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LayeredSpec.ApplicationSpec
An
LayeredSpec.IntoLayersSpec that controls the layers to which application classes and
resources belong. |
static class |
LayeredSpec.DependenciesIntoLayerSpec
Spec that controls the dependencies that should be part of a particular layer.
|
static class |
LayeredSpec.DependenciesSpec
An
LayeredSpec.IntoLayersSpec that controls the layers to which dependencies belong. |
static class |
LayeredSpec.IntoLayerSpec
Spec that controls the content that should be part of a particular layer.
|
static class |
LayeredSpec.IntoLayersSpec
Base class for specs that control the layers to which a category of content should
belong.
|
Constructor and Description |
---|
LayeredSpec() |
Modifier and Type | Method and Description |
---|---|
void |
application(Action<LayeredSpec.ApplicationSpec> action)
Customizes the
LayeredSpec.ApplicationSpec using the given action . |
void |
application(groovy.lang.Closure<?> closure)
Customizes the
LayeredSpec.ApplicationSpec using the given closure . |
void |
dependencies(Action<LayeredSpec.DependenciesSpec> action)
Customizes the
LayeredSpec.DependenciesSpec using the given action . |
void |
dependencies(groovy.lang.Closure<?> closure)
Customizes the
LayeredSpec.DependenciesSpec using the given closure . |
LayeredSpec.ApplicationSpec |
getApplication()
Returns the
LayeredSpec.ApplicationSpec that controls the layers to which application
classes and resources belong. |
LayeredSpec.DependenciesSpec |
getDependencies()
Returns the
LayeredSpec.DependenciesSpec that controls the layers to which dependencies
belong. |
List<String> |
getLayerOrder()
Returns the order of the layers in the archive from least to most frequently
changing.
|
boolean |
isEnabled()
Returns whether the layers.idx should be included in the archive.
|
boolean |
isIncludeLayerTools()
Returns whether the layer tools should be included as a dependency in the layered
archive.
|
void |
setApplication(LayeredSpec.ApplicationSpec spec)
Sets the
LayeredSpec.ApplicationSpec that controls the layers to which application
classes are resources belong. |
void |
setDependencies(LayeredSpec.DependenciesSpec spec)
Sets the
LayeredSpec.DependenciesSpec that controls the layers to which dependencies
belong. |
void |
setEnabled(boolean enabled)
Sets whether the layers.idx should be included in the archive.
|
void |
setIncludeLayerTools(boolean includeLayerTools)
Sets whether the layer tools should be included as a dependency in the layered
archive.
|
void |
setLayerOrder(List<String> layerOrder)
Sets the order of the layers in the archive from least to most frequently changing.
|
void |
setLayerOrder(String... layerOrder)
Sets the order of the layers in the archive from least to most frequently changing.
|
@Input public boolean isIncludeLayerTools()
public void setIncludeLayerTools(boolean includeLayerTools)
includeLayerTools
- true
if the layer tools should be included,
otherwise false
@Input public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- true
layers.idx should be included in the archive, otherwise
false
@Input public LayeredSpec.ApplicationSpec getApplication()
LayeredSpec.ApplicationSpec
that controls the layers to which application
classes and resources belong.public void setApplication(LayeredSpec.ApplicationSpec spec)
LayeredSpec.ApplicationSpec
that controls the layers to which application
classes are resources belong.spec
- the application specpublic void application(Action<LayeredSpec.ApplicationSpec> action)
LayeredSpec.ApplicationSpec
using the given action
.action
- the actionpublic void application(groovy.lang.Closure<?> closure)
LayeredSpec.ApplicationSpec
using the given closure
.closure
- the closure@Input public LayeredSpec.DependenciesSpec getDependencies()
LayeredSpec.DependenciesSpec
that controls the layers to which dependencies
belong.public void setDependencies(LayeredSpec.DependenciesSpec spec)
LayeredSpec.DependenciesSpec
that controls the layers to which dependencies
belong.spec
- the dependencies specpublic void dependencies(Action<LayeredSpec.DependenciesSpec> action)
LayeredSpec.DependenciesSpec
using the given action
.action
- the actionpublic void dependencies(groovy.lang.Closure<?> closure)
LayeredSpec.DependenciesSpec
using the given closure
.closure
- the closure@Input public List<String> getLayerOrder()
public void setLayerOrder(String... layerOrder)
layerOrder
- the layer order