Interface ResourceBinding


  • public interface ResourceBinding
    Information about a resource binding.

    This interface is not intended to be implemented by clients.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getBindingName()
      Returns the current binding name for the resource.
      java.lang.Object getProperty​(java.lang.String name)
      Returns a property value.
      java.util.Collection<java.lang.String> getPropertyNames()
      Returns an immutable collection of property names that will return a non-null value from getProperty(java.lang.String).
      java.lang.String getReferenceName()
      Returns the reference name, or null if this event is not for a reference.
      java.lang.String getTypeName()
      Returns the type of the resource name (for example, javax.sql.DataSource).
      void setBindingName​(java.lang.String name)
      Sets the binding name for the resource.
    • Method Detail

      • getReferenceName

        java.lang.String getReferenceName()
        Returns the reference name, or null if this event is not for a reference.
      • getTypeName

        java.lang.String getTypeName()
        Returns the type of the resource name (for example, javax.sql.DataSource).
      • getBindingName

        java.lang.String getBindingName()
        Returns the current binding name for the resource.
      • getProperty

        java.lang.Object getProperty​(java.lang.String name)
        Returns a property value. The list of property names varies depending on the type and declaration of the resource.
        Parameters:
        name - the property name
        Returns:
        the property value, or null if not found
        See Also:
        getPropertyNames()
      • getPropertyNames

        java.util.Collection<java.lang.String> getPropertyNames()
        Returns an immutable collection of property names that will return a non-null value from getProperty(java.lang.String).
        Returns:
        a non-null immutable collection of property names
      • setBindingName

        void setBindingName​(java.lang.String name)
        Sets the binding name for the resource.