#To not interrupt main chat
1 messages · Page 1 of 1 (latest)
Is this specific class a singleton?
not really
I have say 10 instances (varies based on conf), i want to keep track of one specific instance that was set as "default" you could say, would it be right to do it in a provider/manager or in the class itself?
Hmm I guess
yeah putting it in my provider
well you get it by passing from another class
so like
MyClassProvider#get -> MyClass
Nah that's bad use for static in my opinion
Yeah i put it in my utils sclass
the provider*
wops
Default value? Acceptable, if it is immutable