This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ScopeTest | |
class Inner() { | |
fun activate(x: String) { | |
println("Activate Inner ($x)") | |
} | |
} | |
class Outer(var inner: Inner?) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun <T> access(thing: T, getter: (T) -> String?) { | |
println("Got " + getter(thing)) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package uk.co.humboldt.Application.Services; | |
import org.springframework.context.annotation.Scope; | |
import org.springframework.stereotype.Component; | |
import java.lang.annotation.*; | |
/** | |
* Based on http://sivalabs.in/2011/10/spring-and-quartz-integration-using-custom-annotation/ | |
*/ |