类 LayeredSpec
java.lang.Object
cn.taketoday.gradle.tasks.bundling.LayeredSpec
Encapsulates the configuration for a layered archive.
- 从以下版本开始:
- 4.0
- 作者:
- Madhura Bhave, Scott Frederick, Phillip Webb, Harry Yang
-
嵌套类概要
嵌套类修饰符和类型类说明static classAnLayeredSpec.IntoLayersSpecthat controls the layers to which application classes and resources belong.static classSpec that controls the dependencies that should be part of a particular layer.static classAnLayeredSpec.IntoLayersSpecthat controls the layers to which dependencies belong.static classSpec that controls the content that should be part of a particular layer.static classBase class for specs that control the layers to which a category of content should belong. -
字段概要
字段修饰符和类型字段说明private LayeredSpec.ApplicationSpecprivate LayeredSpec.DependenciesSpecprivate cn.taketoday.app.loader.tools.Layers -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidapplication(org.gradle.api.Action<LayeredSpec.ApplicationSpec> action) Customizes theLayeredSpec.ApplicationSpecusing the givenaction.(专用程序包) cn.taketoday.app.loader.tools.LayersasLayers()Return this configuration as aLayersinstance.private cn.taketoday.app.loader.tools.Layersvoiddependencies(org.gradle.api.Action<LayeredSpec.DependenciesSpec> action) Customizes theLayeredSpec.DependenciesSpecusing the givenaction.Returns theLayeredSpec.ApplicationSpecthat controls the layers to which application classes and resources belong.Returns theLayeredSpec.DependenciesSpecthat controls the layers to which dependencies belong.abstract org.gradle.api.provider.Property<Boolean>Returns whether the layers.idx should be included in the archive.abstract org.gradle.api.provider.Property<Boolean>Returns whether the layer tools should be included as a dependency in the layered archive.abstract org.gradle.api.provider.ListProperty<String>Returns the order of the layers in the archive from least to most frequently changing.voidSets theLayeredSpec.ApplicationSpecthat controls the layers to which application classes are resources belong.voidSets theLayeredSpec.DependenciesSpecthat controls the layers to which dependencies belong.
-
字段详细资料
-
application
-
dependencies
-
layers
private cn.taketoday.app.loader.tools.Layers layers
-
-
构造器详细资料
-
LayeredSpec
@Inject public LayeredSpec(org.gradle.api.model.ObjectFactory objects)
-
-
方法详细资料
-
getIncludeLayerTools
Returns whether the layer tools should be included as a dependency in the layered archive.- 返回:
- whether the layer tools should be included
-
getEnabled
Returns whether the layers.idx should be included in the archive.- 返回:
- whether the layers.idx should be included
-
getApplication
Returns theLayeredSpec.ApplicationSpecthat controls the layers to which application classes and resources belong.- 返回:
- the application spec
-
setApplication
Sets theLayeredSpec.ApplicationSpecthat controls the layers to which application classes are resources belong.- 参数:
spec- the application spec
-
application
Customizes theLayeredSpec.ApplicationSpecusing the givenaction.- 参数:
action- the action
-
getDependencies
Returns theLayeredSpec.DependenciesSpecthat controls the layers to which dependencies belong.- 返回:
- the dependencies spec
-
setDependencies
Sets theLayeredSpec.DependenciesSpecthat controls the layers to which dependencies belong.- 参数:
spec- the dependencies spec
-
dependencies
Customizes theLayeredSpec.DependenciesSpecusing the givenaction.- 参数:
action- the action
-
getLayerOrder
Returns the order of the layers in the archive from least to most frequently changing.- 返回:
- the layer order
-
asLayers
cn.taketoday.app.loader.tools.Layers asLayers()Return this configuration as aLayersinstance. This method should only be called when the configuration is complete and will no longer be changed.- 返回:
- the layers
-
createLayers
private cn.taketoday.app.loader.tools.Layers createLayers()
-