LeetCode-OpenSource/ayanami

Provide a way to use Ayanami in a non-singleton pattern

runjuu opened this issue · 1 comments

solution A: using decorators to distinguish singleton or non-singleton

@Singleton()
class SomeThing extends Ayanami {}

@Transient()
class AnotherThing extends Ayanami {}

solution B: export another class for non-singleton usage

class SomeThing extends NonSingletonAyanami {}