public class JKubeEnricherContext extends Object implements EnricherContext
| Modifier and Type | Class and Description |
|---|---|
static class |
JKubeEnricherContext.JKubeEnricherContextBuilder |
| Constructor and Description |
|---|
JKubeEnricherContext(Configuration configuration,
List<org.eclipse.jkube.kit.common.RegistryServerConfiguration> settings,
Map<String,String> processingInstructions,
org.eclipse.jkube.kit.common.JavaProject project,
org.eclipse.jkube.kit.common.KitLogger log,
ResourceConfig resources,
List<ImageConfiguration> images,
ProcessorConfig processorConfig,
HandlerHub handlerHub) |
JKubeEnricherContext(List<org.eclipse.jkube.kit.common.RegistryServerConfiguration> settings,
Map<String,String> processingInstructions,
org.eclipse.jkube.kit.common.JavaProject project,
org.eclipse.jkube.kit.common.KitLogger log,
ResourceConfig resources,
List<ImageConfiguration> images,
ProcessorConfig processorConfig) |
| Modifier and Type | Method and Description |
|---|---|
static JKubeEnricherContext.JKubeEnricherContextBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
Configuration |
getConfiguration()
overall configuration for the build.
|
List<org.eclipse.jkube.kit.common.Dependency> |
getDependencies(boolean transitive)
Gets dependencies defined in build tool
|
String |
getDockerJsonConfigString(List<org.eclipse.jkube.kit.common.RegistryServerConfiguration> settings,
String serverId) |
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.
|
List<org.eclipse.jkube.kit.common.RegistryServerConfiguration> |
getSettings() |
int |
hashCode() |
boolean |
hasPlugin(String groupId,
String artifactId)
Check if a given plugin is present
|
void |
setProcessingInstructions(Map<String,String> instruction) |
JKubeEnricherContext.JKubeEnricherContextBuilder |
toBuilder() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetDependencyVersion, hasDependencypublic JKubeEnricherContext(List<org.eclipse.jkube.kit.common.RegistryServerConfiguration> settings, Map<String,String> processingInstructions, org.eclipse.jkube.kit.common.JavaProject project, org.eclipse.jkube.kit.common.KitLogger log, ResourceConfig resources, List<ImageConfiguration> images, ProcessorConfig processorConfig)
public JKubeEnricherContext(Configuration configuration, List<org.eclipse.jkube.kit.common.RegistryServerConfiguration> settings, Map<String,String> processingInstructions, org.eclipse.jkube.kit.common.JavaProject project, org.eclipse.jkube.kit.common.KitLogger log, ResourceConfig resources, List<ImageConfiguration> images, ProcessorConfig processorConfig, HandlerHub handlerHub)
public Map<String,String> getProcessingInstructions()
getProcessingInstructions in interface EnricherContextpublic void setProcessingInstructions(Map<String,String> instruction)
setProcessingInstructions in interface EnricherContextpublic GroupArtifactVersion getGav()
EnricherContextgetGav in interface EnricherContextpublic File getProjectDirectory()
EnricherContextgetProjectDirectory in interface EnricherContextpublic List<org.eclipse.jkube.kit.common.Dependency> getDependencies(boolean transitive)
EnricherContextgetDependencies in interface EnricherContexttransitive - if transitive deps should be returned.public boolean hasPlugin(String groupId, String artifactId)
EnricherContexthasPlugin in interface EnricherContextgroupId - group id of plugin to check. If null any group will be considered.artifactId - of plugin to checkpublic org.eclipse.jkube.kit.common.util.ProjectClassLoaders getProjectClassLoaders()
EnricherContextgetProjectClassLoaders in interface EnricherContextpublic Properties getProperties()
EnricherContextgetProperties in interface EnricherContextpublic String getProperty(String key)
EnricherContextgetProperty in interface EnricherContextkey - name of propertypublic String getDockerJsonConfigString(List<org.eclipse.jkube.kit.common.RegistryServerConfiguration> settings, String serverId)
public static JKubeEnricherContext.JKubeEnricherContextBuilder builder()
public JKubeEnricherContext.JKubeEnricherContextBuilder toBuilder()
public Configuration getConfiguration()
getConfiguration in interface EnricherContextpublic List<org.eclipse.jkube.kit.common.RegistryServerConfiguration> getSettings()
public org.eclipse.jkube.kit.common.JavaProject getProject()
getProject in interface EnricherContextpublic org.eclipse.jkube.kit.common.KitLogger getLog()
EnricherContextgetLog in interface EnricherContextpublic HandlerHub getHandlerHub()
EnricherContextgetHandlerHub in interface EnricherContextprotected boolean canEqual(Object other)
Copyright © 2022. All rights reserved.