Class AbstractClassDescriptionGenerator

    • Field Detail

      • m_Cache

        protected static Map<Class,​Class> m_Cache
        the cache for object class / handler relation.
      • m_GeneratorClasses

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

      • AbstractClassDescriptionGenerator

        protected AbstractClassDescriptionGenerator()
        Initializes the handler.
    • Method Detail

      • initialize

        protected void initialize()
        For initializing members.
        Default implementation does nothing.
      • handles

        public boolean handles​(Object obj)
        Checks whether this object is handled by this generator.
        Specified by:
        handles in interface ClassDescriptionGenerator
        Parameters:
        obj - the object to check
        Returns:
        true if handled
      • initHandlers

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

        public static AbstractClassDescriptionGenerator getHandler​(Object obj)
        Returns a handler for the specified object.
        Parameters:
        obj - the object to get a commandline handler for
        Returns:
        the handler
      • getHandler

        public static AbstractClassDescriptionGenerator getHandler​(Class cls)
        Returns a handler for the specified class.
        Parameters:
        cls - the class to get a commandline handler for
        Returns:
        the handler, null if none available