congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
JNDIResourceModel
Code IndexAdd Tabnine to your IDE (free)

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

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

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;
}
origin: windup/windup

/**
 * Indicates whether this {@link JNDIResourceModel} is associated with the given application.
 */
default boolean isAssociatedWithApplication(ProjectModel application)
{
  boolean alreadyExists = false;
  for (ProjectModel existing : getApplications())
  {
    if (existing.equals(application))
    {
      alreadyExists = true;
      break;
    }
  }
  return alreadyExists;
}
origin: org.jboss.windup.rules.apps/windup-rules-java-ee

if (!jndi.isAssociatedWithApplication(application))
  continue;
origin: windup/windup

if (!jndi.isAssociatedWithApplication(application))
  continue;
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

/**
 * Indicates whether this {@link JNDIResourceModel} is associated with the given application.
 */
default boolean isAssociatedWithApplication(ProjectModel application)
{
  boolean alreadyExists = false;
  for (ProjectModel existing : getApplications())
  {
    if (existing.equals(application))
    {
      alreadyExists = true;
      break;
    }
  }
  return alreadyExists;
}
org.jboss.windup.rules.apps.javaee.modelJNDIResourceModel

Javadoc

Represents a JDNI resource found within the application.

Most used methods

  • addApplication
    Contains the application in which this JNDI resource was discovered.
  • 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

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • getApplicationContext (Context)
  • getSharedPreferences (Context)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • JFrame (javax.swing)
  • JTextField (javax.swing)
  • 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