@Target(value=TYPE) @Retention(value=RUNTIME) public @interface Unit
In order to inject the singleton instance of each inner class, TANG first instantiates the outer class and then uses the resulting instance to instantiate each inner class.
Classes annotated in this way must have at least one non-static inner class and no static inner classes. The inner classes must not declare any constructors.
Furthermore, classes annotated with Unit may not have injectable (or Unit) subclasses.
Copyright © 2016 The Apache Software Foundation. All rights reserved.