Get global variable direct from java file

Now we set global variable to java code by a flow
image
Is there anyway to get global variable inside a java file but not pass from flow ?

Hi Vu Hoang Hiep,

Are your java file here mean the java service created inside the folder?
I think you can refer to this post:

Thanks