Class SimpleName.Scoped

    • Constructor Detail

      • Scoped

        public Scoped​(SimpleNameSpace scope,
                      Name name)
               throws IllegalArgumentException
        Creates a new instance backed by the given JNDI name. This constructor does not clone the given JNDI name. While this implementation is robust to change in the wrapped object, it is a better practice to keep the JNDI name unmodified after SimpleName construction.
        Parameters:
        scope - the scope (name space) in which the given name is local, or null.
        name - the JNDI name wrapped by this SimpleName (not cloned).
        Throws:
        IllegalArgumentException - if the given name has less than 2 components.