Class UberspectImpl

    • Field Detail

      • log

        protected org.slf4j.Logger log
        Our runtime logger.
      • introspector

        protected Introspector introspector
        the default Velocity introspector
    • Constructor Detail

      • UberspectImpl

        public UberspectImpl()
    • Method Detail

      • init

        public void init()
        init - generates the Introspector. As the setup code makes sure that the log gets set before this is called, we can initialize the Introspector using the log object.
        Specified by:
        init in interface Uberspect
      • setLog

        public void setLog​(org.slf4j.Logger log)
        Deprecated.
        logger is now set by default to the namespace logger "velocity.rendering".
        Sets the runtime logger - this must be called before anything else.
        Parameters:
        log - The logger instance to use.
        Since:
        1.5
      • getIterator

        public Iterator getIterator​(Object obj,
                                    Info i)
        To support iterative objects used in a #foreach() loop.
        Specified by:
        getIterator in interface Uberspect
        Parameters:
        obj - The iterative object.
        i - Info about the object's location.
        Returns:
        An Iterator object.