Class WatchableGroovyScriptResource

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void execute​(java.lang.Object[] args)
      Execute.
      <T> T execute​(java.lang.Object[] args, java.lang.Class<T> clazz)
      Execute t.
      <T> T execute​(java.lang.Object[] args, java.lang.Class<T> clazz, boolean failOnError)
      Execute t.
      <T> T execute​(java.lang.String methodName, java.lang.Class<T> clazz, boolean failOnError, java.lang.Object... args)
      Execute.
      <T> T execute​(java.lang.String methodName, java.lang.Class<T> clazz, java.lang.Object... args)
      Execute t.
      • Methods inherited from class java.lang.Object

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

      • WatchableGroovyScriptResource

        public WatchableGroovyScriptResource​(org.springframework.core.io.Resource script,
                                             boolean enableWatcher)
      • WatchableGroovyScriptResource

        public WatchableGroovyScriptResource​(org.springframework.core.io.Resource script)
    • Method Detail

      • execute

        public <T> T execute​(java.lang.Object[] args,
                             java.lang.Class<T> clazz)
        Description copied from interface: ExecutableCompiledGroovyScript
        Execute t.
        Specified by:
        execute in interface ExecutableCompiledGroovyScript
        Type Parameters:
        T - the type parameter
        Parameters:
        args - the args
        clazz - the clazz
        Returns:
        the t
      • execute

        public <T> T execute​(java.lang.Object[] args,
                             java.lang.Class<T> clazz,
                             boolean failOnError)
        Description copied from interface: ExecutableCompiledGroovyScript
        Execute t.
        Specified by:
        execute in interface ExecutableCompiledGroovyScript
        Type Parameters:
        T - the type parameter
        Parameters:
        args - the args
        clazz - the clazz
        failOnError - the fail on error
        Returns:
        the t
      • execute

        public <T> T execute​(java.lang.String methodName,
                             java.lang.Class<T> clazz,
                             java.lang.Object... args)
        Description copied from interface: ExecutableCompiledGroovyScript
        Execute t.
        Specified by:
        execute in interface ExecutableCompiledGroovyScript
        Type Parameters:
        T - the type parameter
        Parameters:
        methodName - the method name
        clazz - the clazz
        args - the args
        Returns:
        the t
      • execute

        public <T> T execute​(java.lang.String methodName,
                             java.lang.Class<T> clazz,
                             boolean failOnError,
                             java.lang.Object... args)
        Execute.
        Type Parameters:
        T - the type parameter
        Parameters:
        methodName - the method name
        clazz - the clazz
        failOnError - the fail on error
        args - the args
        Returns:
        the t