Class ThunkCreatorImpl

    • Method Detail

      • createThunk

        public <T> T createThunk​(Class<T> proxyType,
                                 ObjectCreator objectCreator,
                                 String description)
        Description copied from interface: ThunkCreator
        Creates a Thunk of the given proxy type.
        Specified by:
        createThunk in interface ThunkCreator
        Type Parameters:
        T - type of thunk
        Parameters:
        proxyType - type of object to create (must be an interface)
        objectCreator - provides an instance of the same type on demand (may be invoked multiple times)
        description - to be returned from the thunk's toString() method
        Returns:
        thunk of given type