Codota Logo
ApplicationModel
Code IndexAdd Codota 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)

  • 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: 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

  • Reading from database using SQL prepared statement
  • compareTo (BigDecimal)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • getContentResolver (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Notification (javax.management)
  • JFrame (javax.swing)
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