public static final class ProjectActionContext.Builder extends Object
ProjectActionContext
.Modifier and Type | Method and Description |
---|---|
ProjectActionContext |
context() |
ProjectActionContext.Builder |
forProjectAction(String projectAction)
Specifies the intended project action.
|
ProjectActionContext.Builder |
useConfiguration(ProjectConfiguration configuration)
Binds to a specific
ProjectConfiguration , which must resolve to an instance of |
ProjectActionContext.Builder |
withLookup(Lookup lkp)
Specifies a Lookup to be included in the context.
|
ProjectActionContext.Builder |
withProfiles(Collection<String> profiles)
Use specific build system profiles or tags for the query evaluation.
|
ProjectActionContext.Builder |
withProfiles(String... profiles)
Use specific build system profiles or tags for the query evaluation.
|
ProjectActionContext.Builder |
withProperties(Map<String,String> properties)
Uses specific user properties for the query computation.
|
ProjectActionContext.Builder |
withProperty(String n,
String v)
Uses specific property value for the query computation.
|
public ProjectActionContext.Builder withLookup(Lookup lkp)
Lookup.EMPTY
value.lkp
- Lookup instance@NonNull public ProjectActionContext.Builder forProjectAction(String projectAction)
null
(the default)
means an unspecified action.projectAction
- project action.@NonNull public ProjectActionContext.Builder useConfiguration(ProjectConfiguration configuration)
ProjectConfiguration
, which must resolve to an instance ofconfiguration
- @NonNull public ProjectActionContext.Builder withProperties(Map<String,String> properties)
properties
- user properties.@NonNull public ProjectActionContext.Builder withProfiles(Collection<String> profiles)
profiles
- applied profile(s).@NonNull public ProjectActionContext.Builder withProperty(String n, String v)
n
- property namev
- property value@NonNull public ProjectActionContext.Builder withProfiles(String... profiles)
profiles
- applied profile(s).@NonNull public ProjectActionContext context()
ProjectActionContext