Class AbstractWrapper

    • Method Detail

      • get

        public abstract Object get​(String name)
        Get the value of the requested attribute. Implementors should wrap the result using the wrap(Object) method.
        Parameters:
        name - the name of the requested attribute
        Returns:
        the value
      • wrap

        protected Object wrap​(Object result)
        Helper to wrap an arbitary result in a wrapper if required.
        Parameters:
        result - the result to wrap
        Returns:
        a wrapper or the result itself