Codota Logo
FeaturePackUpdatePlan$Request.buildPlan
Code IndexAdd Codota to your IDE (free)

How to use
buildPlan
method
in
org.jboss.galleon.layout.FeaturePackUpdatePlan$Request

Best Java code snippets using org.jboss.galleon.layout.FeaturePackUpdatePlan$Request.buildPlan (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: org.jboss.galleon/galleon-core

default FeaturePackUpdatePlan getUpdatePlan(FeaturePackUpdatePlan.Request updateRequest) throws ProvisioningException {
  final FeaturePackLocation fpl = updateRequest.getInstalledLocation();
  String latestBuild = null;
  try {
    latestBuild = getLatestBuild(fpl);
  } catch(LatestVersionNotAvailableException e) {
    // that also means no update
  }
  if (latestBuild != null && !(latestBuild.equals(fpl.getBuild()))) {
    updateRequest.setNewLocation(fpl.replaceBuild(latestBuild));
  }
  return updateRequest.buildPlan();
}
origin: org.jboss.galleon/galleon-cli

private static void addCustomUpdates(ProvisioningPlan plan, List<FeaturePackLocation> custom, ProvisioningManager mgr) throws ProvisioningException {
  try (ProvisioningLayout<?> layout = mgr.getLayoutFactory().newConfigLayout(mgr.getProvisioningConfig())) {
    for (FeaturePackLocation loc : custom) {
      FeaturePackLayout fpl = layout.getFeaturePack(loc.getProducer());
      FeaturePackLocation current = fpl.getFPID().getLocation();
      FeaturePackUpdatePlan fpPlan = FeaturePackUpdatePlan.request(current, fpl.isTransitiveDep()).setNewLocation(loc).buildPlan();
      if (fpPlan.hasNewLocation()) {
        plan.update(fpPlan);
      }
    }
  }
}
org.jboss.galleon.layoutFeaturePackUpdatePlan$RequestbuildPlan

Popular methods of FeaturePackUpdatePlan$Request

  • setNewLocation
  • <init>
  • getInstalledLocation

Popular in Java

  • Making http requests using okhttp
  • setRequestProperty (URLConnection)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onRequestPermissionsResult (Fragment)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Reference (javax.naming)
  • JList (javax.swing)
  • JTextField (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now