Tabnine Logo
JNDIResourceModel.addApplication
Code IndexAdd Tabnine to your IDE (free)

How to use
addApplication
method
in
org.jboss.windup.rules.apps.javaee.model.JNDIResourceModel

Best Java code snippets using org.jboss.windup.rules.apps.javaee.model.JNDIResourceModel.addApplication (Showing top 2 results out of 315)

origin: windup/windup

/**
 * Create unique; if existing convert an existing {@link JNDIResourceModel} if one exists.
 */
public synchronized JNDIResourceModel createUnique(Set<ProjectModel> applications, String jndiName)
{
  JNDIResourceModel jndiResourceModel = getUniqueByProperty(JNDIResourceModel.JNDI_LOCATION, jndiName);
  if (jndiResourceModel == null)
  {
    jndiResourceModel = super.create();
    jndiResourceModel.setJndiLocation(jndiName);
    jndiResourceModel.setApplications(applications);
  }
  else
  {
    for (ProjectModel application : applications)
    {
      if (!jndiResourceModel.isAssociatedWithApplication(application))
        jndiResourceModel.addApplication(application);
    }
  }
  return jndiResourceModel;
}
origin: org.jboss.windup.rules.apps/windup-rules-java-ee

/**
 * Create unique; if existing convert an existing {@link JNDIResourceModel} if one exists.
 */
public synchronized JNDIResourceModel createUnique(Set<ProjectModel> applications, String jndiName)
{
  JNDIResourceModel jndiResourceModel = getUniqueByProperty(JNDIResourceModel.JNDI_LOCATION, jndiName);
  if (jndiResourceModel == null)
  {
    jndiResourceModel = super.create();
    jndiResourceModel.setJndiLocation(jndiName);
    jndiResourceModel.setApplications(applications);
  }
  else
  {
    for (ProjectModel application : applications)
    {
      if (!jndiResourceModel.isAssociatedWithApplication(application))
        jndiResourceModel.addApplication(application);
    }
  }
  return jndiResourceModel;
}
org.jboss.windup.rules.apps.javaee.modelJNDIResourceModeladdApplication

Javadoc

Contains the application in which this JNDI resource was discovered.

Popular methods of JNDIResourceModel

  • getApplications
    Contains the application in which this JNDI resource was discovered.
  • isAssociatedWithApplication
    Indicates whether this JNDIResourceModel is associated with the given application.
  • setApplications
    Contains the application in which this JNDI resource was discovered.
  • setJndiLocation
    Contains JNDI Location

Popular in Java

  • Running tasks concurrently on multiple threads
  • requestLocationUpdates (LocationManager)
  • compareTo (BigDecimal)
  • getContentResolver (Context)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Notification (javax.management)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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