Tabnine Logo
ApplicationModel
Code IndexAdd Tabnine to your IDE (free)

How to use
ApplicationModel
in
org.jboss.windup.graph.model

Best Java code snippets using org.jboss.windup.graph.model.ApplicationModel (Showing top 3 results out of 315)

origin: windup/windup

/**
 * Gets the project model used for shared libraries (libraries duplicated in multiple places within one or
 * more applications).
 */
public ProjectModel getOrCreateSharedLibsProject()
{
  ProjectService service = new ProjectService(getGraphContext());
  ProjectModel sharedLibsProject = service.getByUniqueID(SHARED_LIBS_UNIQUE_ID);
  if (sharedLibsProject == null)
  {
    sharedLibsProject = service.create();
    sharedLibsProject.setName(SHARED_LIBS_APP_NAME);
    sharedLibsProject.setUniqueID(SHARED_LIBS_UNIQUE_ID);
    sharedLibsProject.setProjectType(ProjectModel.TYPE_VIRTUAL);
    // attach a directory to it, as we generally assume that all projects have a location on disk
    Path archivesDirectory = WindupConfigurationService.getArchivesPath(getGraphContext());
    Path sharedLibsPath = archivesDirectory.resolve("shared-libs-" + RandomStringUtils.randomAlphabetic(6)).resolve(SHARED_LIBS_FILENAME);
    PathUtil.createDirectory(sharedLibsPath, "shared libs virtual app");
    FileModel sharedLibsFileModel = new FileService(getGraphContext()).createByFilePath(sharedLibsPath.toString());
    ApplicationModel applicationModel = GraphService.addTypeToModel(getGraphContext(), sharedLibsFileModel, ApplicationModel.class);
    applicationModel.setApplicationName(SHARED_LIBS_FILENAME);
    sharedLibsProject.setRootFileModel(sharedLibsFileModel);
    sharedLibsProject.addFileModel(sharedLibsFileModel);
    // attach this to the configuration, so that reporting treats it as a standalone app
    WindupConfigurationModel configuration = WindupConfigurationService.getConfigurationModel(getGraphContext());
    configuration.addInputPath(sharedLibsFileModel);
  }
  return sharedLibsProject;
}
origin: org.jboss.windup.graph/windup-graph-api

/**
 * Gets the project model used for shared libraries (libraries duplicated in multiple places within one or
 * more applications).
 */
public ProjectModel getOrCreateSharedLibsProject()
{
  ProjectService service = new ProjectService(getGraphContext());
  ProjectModel sharedLibsProject = service.getByUniqueID(SHARED_LIBS_UNIQUE_ID);
  if (sharedLibsProject == null)
  {
    sharedLibsProject = service.create();
    sharedLibsProject.setName(SHARED_LIBS_APP_NAME);
    sharedLibsProject.setUniqueID(SHARED_LIBS_UNIQUE_ID);
    sharedLibsProject.setProjectType(ProjectModel.TYPE_VIRTUAL);
    // attach a directory to it, as we generally assume that all projects have a location on disk
    Path archivesDirectory = WindupConfigurationService.getArchivesPath(getGraphContext());
    Path sharedLibsPath = archivesDirectory.resolve("shared-libs-" + RandomStringUtils.randomAlphabetic(6)).resolve(SHARED_LIBS_FILENAME);
    PathUtil.createDirectory(sharedLibsPath, "shared libs virtual app");
    FileModel sharedLibsFileModel = new FileService(getGraphContext()).createByFilePath(sharedLibsPath.toString());
    ApplicationModel applicationModel = GraphService.addTypeToModel(getGraphContext(), sharedLibsFileModel, ApplicationModel.class);
    applicationModel.setApplicationName(SHARED_LIBS_FILENAME);
    sharedLibsProject.setRootFileModel(sharedLibsFileModel);
    sharedLibsProject.addFileModel(sharedLibsFileModel);
    // attach this to the configuration, so that reporting treats it as a standalone app
    WindupConfigurationModel configuration = WindupConfigurationService.getConfigurationModel(getGraphContext());
    configuration.addInputPath(sharedLibsFileModel);
  }
  return sharedLibsProject;
}
origin: windup/windup

  applicationModelService.addTypeToModel(applicationModel).setApplicationName(applicationModel.getFileName());
});
  ApplicationModel applicationModel = applicationModelService.addTypeToModel(fileModel);
  if (i < applicationNames.size())
    applicationModel.setApplicationName(applicationNames.get(i));
  else
    applicationModel.setApplicationName(fileModel.getFileName());
org.jboss.windup.graph.modelApplicationModel

Most used methods

  • setApplicationName

Popular in Java

  • Start an intent from android
  • startActivity (Activity)
  • runOnUiThread (Activity)
  • requestLocationUpdates (LocationManager)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • JButton (javax.swing)
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now