Class DefaultNameClassPairMapper

  • All Implemented Interfaces:
    NameClassPairMapper<java.lang.String>

    public class DefaultNameClassPairMapper
    extends java.lang.Object
    implements NameClassPairMapper<java.lang.String>
    The default NameClassPairMapper implementation. This implementation simply takes the Name string from the supplied NameClassPair and returns it as result.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String mapFromNameClassPair​(javax.naming.NameClassPair nameClassPair)
      Gets the Name from the supplied NameClassPair and returns it as the result.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultNameClassPairMapper

        public DefaultNameClassPairMapper()
    • Method Detail

      • mapFromNameClassPair

        public java.lang.String mapFromNameClassPair​(javax.naming.NameClassPair nameClassPair)
                                              throws javax.naming.NamingException
        Gets the Name from the supplied NameClassPair and returns it as the result.
        Specified by:
        mapFromNameClassPair in interface NameClassPairMapper<java.lang.String>
        Parameters:
        nameClassPair - the NameClassPair to transform.
        Returns:
        the Name string from the NameClassPair.
        Throws:
        javax.naming.NamingException - if one is encountered in the operation.