Class JndiBinding

    • Constructor Detail

      • JndiBinding

        protected JndiBinding​(String jndiName,
                              Object value)

        Create a new JNDI binding metadata object.

        Parameters:
        jndiName - the fully-qualified name where the value is bound in JNDI.
        value - the value bound to the JNDI name.
        Since:
        Rhino 2.4.0
    • Method Detail

      • getType

        public abstract BindingType getType()

        Get the type of the binding.

        Returns:
        the type of the binding.
        Since:
        Rhino 2.4.0
      • getJndiName

        public final String getJndiName()

        Get the JNDI name of the binding. This name is fully-qualified.

        Returns:
        the JNDI name.
        Since:
        Rhino 2.4.0
      • getValue

        public final Object getValue()

        Get the value bound to the JNDI name.

        Returns:
        the bound value.
        Since:
        Rhino 2.4.0
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class Object
        Returns:
        equal if o represents the same type of binding and the JNDI name and bound value are equal.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
        Returns:
        the hash code of the JNDI name.