Tagged articles
2 articles
Page 1 of 1
FunTester
FunTester
Nov 19, 2024 · Backend Development

Unlock Dynamic Scripting in Java with GroovyShell: Real‑World Examples

This article introduces GroovyShell, a powerful Groovy tool for runtime script execution, and provides five practical code examples—including basic usage, variable passing, multi‑line scripts, external script loading, and context control—followed by key application scenarios such as rule engines, dynamic configuration, rapid debugging, and data processing.

Backend DevelopmentDynamic ScriptingGroovy
0 likes · 7 min read
Unlock Dynamic Scripting in Java with GroovyShell: Real‑World Examples
FunTester
FunTester
Dec 1, 2021 · Backend Development

Hot Updating Java Apps with Groovy Metaclass and GroovyShell

This article demonstrates how to achieve Java hot‑update without rebuilding by leveraging Groovy's metaclass and GroovyShell, walking through a verification example, a full script implementation, and practical tips for handling script encoding issues.

Backend DevelopmentGroovyGroovyShell
0 likes · 5 min read
Hot Updating Java Apps with Groovy Metaclass and GroovyShell