Alan Bateman wrote > A type safe approach would be to define a helper interface in a > non-exported package and have the enum register an implementation. > Static methods on the interface, or a separate helper, would provide > consumers in the module a way to obtain the implementation. We uses this > approach in the java.base module where it known as the "shared secrets > mechanism".
Hi Alan, Can you provide an example of the "shared secrets mechanism"? You mentioned the java.base module but it's not clear where to look. It might also be easier if you reply at https://stackoverflow.com/q/46701545/14731 so others can see your answer. Thanks, Gili -- Sent from: http://jigsaw-dev.1059479.n5.nabble.com/