类 GenericBomAstTransformation
- java.lang.Object
- org.springframework.boot.cli.compiler.GenericBomAstTransformation
- 所有已实现的接口:
org.codehaus.groovy.transform.ASTTransformation
,SpringBootAstTransformation
,org.springframework.core.Ordered
public abstract class GenericBomAstTransformation extends Object implements SpringBootAstTransformation, org.springframework.core.Ordered
A base class that lets plugin authors easily add additional BOMs to all apps. All the dependencies in the BOM (and its transitives) will be added to the dependency management lookup, so an app can use just the artifact id (e.g. "spring-jdbc") in a@Grab
. To install, implement the missing methods and list the class inMETA-INF/services/org.springframework.boot.cli.compiler.SpringBootAstTransformation
. TheOrdered.getOrder()
value needs to be beforeDependencyManagementBomTransformation.ORDER
.- 从以下版本开始:
- 1.3.0
构造器概要
构造器 构造器 说明 GenericBomAstTransformation()
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 protected abstract String
getBomModule()
The bom to be added to dependency management in compact form:"<groupId>:<artifactId>:<version>"
(like in a@Grab
).void
visit(org.codehaus.groovy.ast.ASTNode[] nodes, org.codehaus.groovy.control.SourceUnit source)
构造器详细资料
GenericBomAstTransformation
public GenericBomAstTransformation()
方法详细资料
visit
public void visit(org.codehaus.groovy.ast.ASTNode[] nodes, org.codehaus.groovy.control.SourceUnit source)
- 指定者:
visit
在接口中org.codehaus.groovy.transform.ASTTransformation
getBomModule
protected abstract String getBomModule()
The bom to be added to dependency management in compact form:"<groupId>:<artifactId>:<version>"
(like in a@Grab
).- 返回:
- the maven co-ordinates of the BOM to add