Enum Class LookupJndiDestination

java.lang.Object
java.lang.Enum<LookupJndiDestination>
org.mule.jms.commons.api.connection.LookupJndiDestination
All Implemented Interfaces:
Serializable, Comparable<LookupJndiDestination>, Constable

public enum LookupJndiDestination extends Enum<LookupJndiDestination>
Defines the behaviours that are supported when looking for a destination based on its name while using a JNDI name resolver. NEVER: Will never lookup for jndi destinations. ALWAYS: Will always lookup the destinations through JNDI. It will fail if the destination does not exists. TRY_ALWAYS: Will always try to lookup the destinations through JNDI but if it does not exists it will create a new one.
Since:
1.0
  • Enum Constant Details

    • NEVER

      public static final LookupJndiDestination NEVER
      Will never lookup for jndi destinations
    • ALWAYS

      public static final LookupJndiDestination ALWAYS
      Will always lookup the destinations through JNDI. It will fail if the destination does not exists.
    • TRY_ALWAYS

      public static final LookupJndiDestination TRY_ALWAYS
      Will always try to lookup the destinations through JNDI but if it does not exists it will create a new one.
  • Method Details

    • values

      public static LookupJndiDestination[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LookupJndiDestination valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null