Class ClassMap

    • Constructor Summary

      Constructors 
      Constructor Description
      ClassMap​(java.lang.Class<?> clazz, org.slf4j.Logger log)
      Standard constructor
      ClassMap​(java.lang.Class<?> clazz, org.slf4j.Logger log, TypeConversionHandler conversionHandler)
      Standard constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.reflect.Method findMethod​(java.lang.String name, java.lang.Object[] params)
      Find a Method using the method name and parameter objects.
      java.lang.Class<?> getCachedClass()
      Returns the class object whose methods are cached by this map.
      • Methods inherited from class java.lang.Object

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

      • ClassMap

        public ClassMap​(java.lang.Class<?> clazz,
                        org.slf4j.Logger log)
        Standard constructor
        Parameters:
        clazz - The class for which this ClassMap gets constructed.
        log - logger
      • ClassMap

        public ClassMap​(java.lang.Class<?> clazz,
                        org.slf4j.Logger log,
                        TypeConversionHandler conversionHandler)
        Standard constructor
        Parameters:
        clazz - The class for which this ClassMap gets constructed.
        log - logger
        conversionHandler - conversion handler
        Since:
        2.0
    • Method Detail

      • getCachedClass

        public java.lang.Class<?> getCachedClass()
        Returns the class object whose methods are cached by this map.
        Returns:
        The class object whose methods are cached by this map.
      • findMethod

        public java.lang.reflect.Method findMethod​(java.lang.String name,
                                                   java.lang.Object[] params)
                                            throws MethodMap.AmbiguousException
        Find a Method using the method name and parameter objects.
        Parameters:
        name - The method name to look up.
        params - An array of parameters for the method.
        Returns:
        A Method object representing the method to invoke or null.
        Throws:
        MethodMap.AmbiguousException - When more than one method is a match for the parameters.