Tabnine Logo
JndiLocatorDelegate.setJndiEnvironment
Code IndexAdd Tabnine to your IDE (free)

How to use
setJndiEnvironment
method
in
org.springframework.jndi.JndiLocatorDelegate

Best Java code snippets using org.springframework.jndi.JndiLocatorDelegate.setJndiEnvironment (Showing top 12 results out of 315)

origin: spring-projects/spring-framework

/**
 * Set the JNDI environment to use for JNDI lookups.
 * @see org.springframework.jndi.JndiAccessor#setJndiEnvironment
 */
public void setJndiEnvironment(Properties jndiEnvironment) {
  this.jndiLocator.setJndiEnvironment(jndiEnvironment);
}
origin: spring-projects/spring-framework

/**
 * Set the JNDI environment to use for JNDI lookups.
 * @see org.springframework.jndi.JndiAccessor#setJndiEnvironment
 */
public void setJndiEnvironment(Properties jndiEnvironment) {
  this.jndiLocator.setJndiEnvironment(jndiEnvironment);
}
origin: spring-projects/spring-framework

/**
 * Set the JNDI environment to use for JNDI lookups.
 * @see org.springframework.jndi.JndiAccessor#setJndiEnvironment
 */
public void setJndiEnvironment(Properties jndiEnvironment) {
  this.jndiLocator.setJndiEnvironment(jndiEnvironment);
}
origin: org.springframework/spring-context

/**
 * Set the JNDI environment to use for JNDI lookups.
 * @see org.springframework.jndi.JndiAccessor#setJndiEnvironment
 */
public void setJndiEnvironment(Properties jndiEnvironment) {
  this.jndiLocator.setJndiEnvironment(jndiEnvironment);
}
origin: org.springframework/spring-context

/**
 * Set the JNDI environment to use for JNDI lookups.
 * @see org.springframework.jndi.JndiAccessor#setJndiEnvironment
 */
public void setJndiEnvironment(Properties jndiEnvironment) {
  this.jndiLocator.setJndiEnvironment(jndiEnvironment);
}
origin: org.springframework/spring-context

/**
 * Set the JNDI environment to use for JNDI lookups.
 * @see org.springframework.jndi.JndiAccessor#setJndiEnvironment
 */
public void setJndiEnvironment(Properties jndiEnvironment) {
  this.jndiLocator.setJndiEnvironment(jndiEnvironment);
}
origin: spring-projects/spring-framework

  public <T> T lookup(String jndiName, Class<T> requiredType) throws Exception {
    JndiLocatorDelegate locator = new JndiLocatorDelegate();
    if (jndiEnvironment instanceof JndiTemplate) {
      locator.setJndiTemplate((JndiTemplate) jndiEnvironment);
    }
    else if (jndiEnvironment instanceof Properties) {
      locator.setJndiEnvironment((Properties) jndiEnvironment);
    }
    else if (jndiEnvironment != null) {
      throw new IllegalStateException("Illegal 'jndiEnvironment' type: " + jndiEnvironment.getClass());
    }
    locator.setResourceRef(resourceRef);
    return locator.lookup(jndiName, requiredType);
  }
}
origin: org.springframework/spring-orm

  public <T> T lookup(String jndiName, Class<T> requiredType) throws Exception {
    JndiLocatorDelegate locator = new JndiLocatorDelegate();
    if (jndiEnvironment instanceof JndiTemplate) {
      locator.setJndiTemplate((JndiTemplate) jndiEnvironment);
    }
    else if (jndiEnvironment instanceof Properties) {
      locator.setJndiEnvironment((Properties) jndiEnvironment);
    }
    else if (jndiEnvironment != null) {
      throw new IllegalStateException("Illegal 'jndiEnvironment' type: " + jndiEnvironment.getClass());
    }
    locator.setResourceRef(resourceRef);
    return locator.lookup(jndiName, requiredType);
  }
}
origin: apache/servicemix-bundles

/**
 * Set the JNDI environment to use for JNDI lookups.
 * @see org.springframework.jndi.JndiAccessor#setJndiEnvironment
 */
public void setJndiEnvironment(Properties jndiEnvironment) {
  this.jndiLocator.setJndiEnvironment(jndiEnvironment);
}
origin: apache/servicemix-bundles

/**
 * Set the JNDI environment to use for JNDI lookups.
 * @see org.springframework.jndi.JndiAccessor#setJndiEnvironment
 */
public void setJndiEnvironment(Properties jndiEnvironment) {
  this.jndiLocator.setJndiEnvironment(jndiEnvironment);
}
origin: apache/servicemix-bundles

/**
 * Set the JNDI environment to use for JNDI lookups.
 * @see org.springframework.jndi.JndiAccessor#setJndiEnvironment
 */
public void setJndiEnvironment(Properties jndiEnvironment) {
  this.jndiLocator.setJndiEnvironment(jndiEnvironment);
}
origin: apache/servicemix-bundles

  public <T> T lookup(String jndiName, Class<T> requiredType) throws Exception {
    JndiLocatorDelegate locator = new JndiLocatorDelegate();
    if (jndiEnvironment instanceof JndiTemplate) {
      locator.setJndiTemplate((JndiTemplate) jndiEnvironment);
    }
    else if (jndiEnvironment instanceof Properties) {
      locator.setJndiEnvironment((Properties) jndiEnvironment);
    }
    else if (jndiEnvironment != null) {
      throw new IllegalStateException("Illegal 'jndiEnvironment' type: " + jndiEnvironment.getClass());
    }
    locator.setResourceRef(resourceRef);
    return locator.lookup(jndiName, requiredType);
  }
}
org.springframework.jndiJndiLocatorDelegatesetJndiEnvironment

Popular methods of JndiLocatorDelegate

  • <init>
  • lookup
  • setJndiTemplate
  • setResourceRef
  • isDefaultJndiEnvironmentAvailable
    Check whether a default JNDI environment, as in a Java EE environment, is available on this JVM.
  • createDefaultResourceRefLocator
    Configure a JndiLocatorDelegate with its "resourceRef" property set to true, meaning that all names
  • isResourceRef

Popular in Java

  • Reading from database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onCreateOptionsMenu (Activity)
  • setContentView (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Best IntelliJ plugins
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