Class AbstractInspectionHandler

    • Field Detail

      • m_Handlers

        protected static String[] m_Handlers
        the handlers (classnames) currently available.
      • m_HandlerClasses

        protected static Class[] m_HandlerClasses
        the handlers (classes) currently available.
    • Constructor Detail

      • AbstractInspectionHandler

        public AbstractInspectionHandler()
    • Method Detail

      • initHandlers

        protected static void initHandlers()
        Initializes the handlers.
      • getHandler

        public static List<AbstractInspectionHandler> getHandler​(Object obj)
        Returns a handler for the specified object.
        Parameters:
        obj - the object to get a commandline handler for
        Returns:
        the handler
      • instantiate

        protected static List<AbstractInspectionHandler> instantiate​(List<Class> handlers)
        Instantiates the handlers.
        Parameters:
        handlers - the handlers to instantiate
        Returns:
        the instances
      • getHandler

        public static List<AbstractInspectionHandler> getHandler​(Class cls)
        Returns a handler for the specified class.
        Parameters:
        cls - the class to get a commandline handler for
        Returns:
        the handler
      • handles

        public abstract boolean handles​(Class cls)
        Checks whether the handler can handle the specified class.
        Parameters:
        cls - the class to check
        Returns:
        true if the handler can handle this type of object
      • inspect

        public abstract Hashtable<String,​Object> inspect​(Object obj)
        Returns further inspection values.
        Parameters:
        obj - the object to further inspect
        Returns:
        the named inspected values
      • getHandlers

        public static String[] getHandlers()
        Returns a list with classnames of handlers.
        Returns:
        the handler classnames