gh-pages / com.nextfaze.devfun.inject / Constructable / singleton

singleton

val singleton: Boolean (source)

If true then a single shared instance will be constructed. Be careful when using this on inner classes as it will hold a reference to its outer class. i.e. Only use this if the outer class is an object/singleton.