Class BindingConfiguration

java.lang.Object
org.jboss.as.ee.component.BindingConfiguration

public final class BindingConfiguration extends Object
A binding into JNDI. This class contains the mechanism to construct the binding service. In particular it represents only the description of the binding; it does not represent injection or any other parameters of a JNDI resource.
Author:
David M. Lloyd
  • Constructor Details

    • BindingConfiguration

      public BindingConfiguration(String name, InjectionSource source)
      Construct a new instance.
      Parameters:
      name - the binding name
      source - The source which will be used to resolve a value to be bound in the JNDI
      Throws:
      IllegalArgumentException - If either of the passed name or source is null
  • Method Details

    • getName

      public String getName()
      The name into which this binding should be made. The meaning of relative names depends on where this binding description is used. For component bindings, relative names are generally relative to java:comp/env.
      Returns:
      the name into which this binding should be made
    • getSource

      public InjectionSource getSource()
      Get the source for this binding.
      Returns:
      the binding's injection source
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object