Class UberspectPublicFields

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Introspector introspector
      the default Velocity introspector
      protected org.slf4j.Logger log
      Our runtime logger.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Iterator getIterator​(java.lang.Object obj, Info info)
      To support iteratives - #foreach()
      VelMethod getMethod​(java.lang.Object obj, java.lang.String method, java.lang.Object[] args, Info info)
      Returns a general method, corresponding to $foo.bar( $woogie )
      VelPropertyGet getPropertyGet​(java.lang.Object obj, java.lang.String identifier, Info i)
      Property getter
      VelPropertySet getPropertySet​(java.lang.Object obj, java.lang.String identifier, java.lang.Object arg, Info i)
      Property setter
      void init()
      init - generates the Introspector.
      void setRuntimeServices​(RuntimeServices rs)
      Called automatically when event cartridge is initialized.
      • Methods inherited from class java.lang.Object

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

      • log

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

        protected Introspector introspector
        the default Velocity introspector
    • Constructor Detail

      • UberspectPublicFields

        public UberspectPublicFields()
    • 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
      • getPropertyGet

        public VelPropertyGet getPropertyGet​(java.lang.Object obj,
                                             java.lang.String identifier,
                                             Info i)
        Property getter
        Specified by:
        getPropertyGet in interface Uberspect
        Parameters:
        obj -
        identifier -
        i -
        Returns:
        A Velocity Getter Method.
      • getPropertySet

        public VelPropertySet getPropertySet​(java.lang.Object obj,
                                             java.lang.String identifier,
                                             java.lang.Object arg,
                                             Info i)
        Property setter
        Specified by:
        getPropertySet in interface Uberspect
        Parameters:
        obj -
        identifier -
        arg -
        i -
        Returns:
        A Velocity Setter method.
      • getIterator

        public java.util.Iterator getIterator​(java.lang.Object obj,
                                              Info info)
        Description copied from interface: Uberspect
        To support iteratives - #foreach()
        Specified by:
        getIterator in interface Uberspect
        Parameters:
        obj -
        info -
        Returns:
        iterator
      • getMethod

        public VelMethod getMethod​(java.lang.Object obj,
                                   java.lang.String method,
                                   java.lang.Object[] args,
                                   Info info)
        Description copied from interface: Uberspect
        Returns a general method, corresponding to $foo.bar( $woogie )
        Specified by:
        getMethod in interface Uberspect
        Parameters:
        obj -
        method -
        args -
        info -
        Returns:
        method wrapper