All scala objects are singletons in terms of java
. There is no public constructor. You should use static field MODULE$
to get an instance of singleton.
I don't know clojure
, but according to this page it looks like you should use this:
ZKStringSerializer$/MODULE$
Note also that the actual type name of object contains $
as last character.