It is on the same JVM.
Suppose there are two modules A and B and I want to send notification to B from A.
one way is to get the reference of B in A and invoke B's method but that is not the right
approach because i want to keep it generic and do not want to add any dependecies and more over
module B acts as pluggable component which may or may not be there.
Is there other approach for this or any design
pattern which can be helpful?