public class PackageJsonUpdater extends UpdaterSupport implements Updater
| Constructor and Description |
|---|
PackageJsonUpdater() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addUpdateDependencySteps(List<DependencyVersionChange> list,
com.fasterxml.jackson.databind.JsonNode tree,
DependencySet dependencySet,
String dependencyKey) |
void |
addVersionChangesFromSource(CommandContext context,
Dependencies dependencyConfig,
List<DependencyVersionChange> list)
Adds the list of possible dependency update steps from the given source context that we can then apply to
other repositories
|
KindDependenciesCheck |
checkDependencies(CommandContext context,
List<DependencyVersionChange> changes) |
protected boolean |
doPushVersionChange(String dependencyKey,
com.fasterxml.jackson.databind.node.ObjectNode dependencies,
PushVersionChangesContext context) |
protected void |
generateDependencyTree(CommandContext context,
String dependencyFileName) |
protected com.fasterxml.jackson.databind.JsonNode |
getJsonFile(CommandContext context,
String fileName) |
protected com.fasterxml.jackson.databind.JsonNode |
getPackageJsonTree(CommandContext context) |
boolean |
isApplicable(CommandContext context) |
protected boolean |
isDevelopmentVersion(String name,
String version)
Returns true if the version string is
|
boolean |
pullVersions(CommandContext context) |
boolean |
pushVersions(PushVersionChangesContext context) |
pushVersionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpushVersionspublic boolean isApplicable(CommandContext context)
isApplicable in interface Updaterpublic boolean pushVersions(PushVersionChangesContext context) throws IOException
pushVersions in interface UpdaterIOExceptionpublic void addVersionChangesFromSource(CommandContext context, Dependencies dependencyConfig, List<DependencyVersionChange> list)
addVersionChangesFromSource in interface Updaterprotected com.fasterxml.jackson.databind.JsonNode getPackageJsonTree(CommandContext context)
protected com.fasterxml.jackson.databind.JsonNode getJsonFile(CommandContext context, String fileName)
public KindDependenciesCheck checkDependencies(CommandContext context, List<DependencyVersionChange> changes)
checkDependencies in interface Updaterprotected void generateDependencyTree(CommandContext context, String dependencyFileName)
protected boolean isDevelopmentVersion(String name, String version)
name - version - protected void addUpdateDependencySteps(List<DependencyVersionChange> list, com.fasterxml.jackson.databind.JsonNode tree, DependencySet dependencySet, String dependencyKey)
public boolean pullVersions(CommandContext context) throws IOException
pullVersions in interface UpdaterIOExceptionprotected boolean doPushVersionChange(String dependencyKey, com.fasterxml.jackson.databind.node.ObjectNode dependencies, PushVersionChangesContext context)
Copyright © 2076–2017 Red Hat. All rights reserved.