Java file :
public class TestModule{
@WrapToScript
public Integer test() final Object params) {
return 10;
}
}
I will include the above class into the ease module using extension point as follows:
<extension
point="org.eclipse.ease.modules">
<module
category="pkg.script.platform"
class="pkg.script.modules.TestModule"
id="pkg.script.modules.TestModule"
name="TestModule"
visible="true">
</module>
</extension>
Groovy script:
print(test();)
I am calling the java module loaded from groovy, if i write some functionality inside that test() method it works fine, but it returns Null always, even if I return some integer explicitly. Expected output for this script is 10, but it prints null.