Class 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 Detail

      • 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 Detail

      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object