Hi folks, I've got a question about annotations,...
# getting-started
t
Hi folks, I've got a question about annotations, in particular is it possible to group / collect annotations on a single annotation class? Something like:
Copy code
@RunWith(SpringJUnit4ClassRunner::class)
@SpringApplicationConfiguration(classes = arrayOf(SomeRandomSpringConfig::class))
@ActiveProfiles("profile")
@Target(CLASS)
annotation class GroupOfAnnotations
Such that it can then be used on another class
Copy code
@GroupOfAnnotations
class Wibble ....
Groovy (http://docs.groovy-lang.org/latest/html/api/groovy/transform/AnnotationCollector.html) requires the
@AnnotationCollector
to achieve this - does Kotlin require something similar?