Client interface execution
I have an interface and a default implementation. Both are packaged like a jar and loaded on the client. however I want to provide a facility so the client can define their own implementation and basically override the default implementation. Is their standard mechanism for doing this? Any special requirements must be followed when generating the jar
+3
source to share
1 answer
Any special requirements must be followed when generating the jar
No, if you don't seal it should be possible by default.
Of course, you certainly need a way for the clients to set their own interface implementations as the one your library will use. But this has nothing to do with packaging :-)
0
source to share