public interface EnricherContext
| Modifier and Type | Method and Description |
|---|---|
Configuration |
getConfiguration()
The configuration specific to the enricher.
|
List<org.eclipse.jkube.kit.common.Dependency> |
getDependencies(boolean transitive)
Gets dependencies defined in build tool
|
default Optional<String> |
getDependencyVersion(String groupId,
String artifactId)
Gets version of given dependency.
|
GroupArtifactVersion |
getGav()
Get the current artifact with its parameters
|
HandlerHub |
getHandlerHub()
Returns the global Handler Hub to use with the enrichers.
|
org.eclipse.jkube.kit.common.KitLogger |
getLog()
Get Logger.
|
Map<String,String> |
getProcessingInstructions() |
org.eclipse.jkube.kit.common.JavaProject |
getProject() |
org.eclipse.jkube.kit.common.util.ProjectClassLoaders |
getProjectClassLoaders()
Get various class loaders used in the projects
|
File |
getProjectDirectory()
Base directory of the project.
|
Properties |
getProperties()
Returns the properties applicable for this EnricherContext.
|
String |
getProperty(String key)
Gets a property used in project.
|
default boolean |
hasDependency(String groupId,
String artifactId)
Checks if given dependency is defined.
|
boolean |
hasPlugin(String groupId,
String artifactId)
Check if a given plugin is present
|
void |
setProcessingInstructions(Map<String,String> instructions) |
GroupArtifactVersion getGav()
org.eclipse.jkube.kit.common.KitLogger getLog()
Configuration getConfiguration()
File getProjectDirectory()
org.eclipse.jkube.kit.common.util.ProjectClassLoaders getProjectClassLoaders()
boolean hasPlugin(String groupId, String artifactId)
groupId - group id of plugin to check. If null any group will be considered.artifactId - of plugin to checkList<org.eclipse.jkube.kit.common.Dependency> getDependencies(boolean transitive)
transitive - if transitive deps should be returned.default boolean hasDependency(String groupId, String artifactId)
groupId - of dependency.artifactId - of dependency. If null, check if there is any dependency with the given groupdefault Optional<String> getDependencyVersion(String groupId, String artifactId)
groupId - of the dependency.artifactId - of the dependency.Properties getProperties()
String getProperty(String key)
key - name of propertyorg.eclipse.jkube.kit.common.JavaProject getProject()
HandlerHub getHandlerHub()
Copyright © 2022. All rights reserved.