Does it make sense?
"Be careful not to make assumptions that a
component may be used by another system in the future and build a
reusable component for a requirement that does not exist yet.. "
Initial version of
Ejb technology was with only remote interfaces,
The applications were using remote interfaces considering future assumption that Components can be reused across the network/ other
Java virtual machines. Which is performance overhead
Now Ejb come with Local and remote interfaces.Same way the spring Pojs and can be available as remotely by changing the some configuration.
No need to add extra burden on the Component considering the assumptions or future requirements.Components must be flexible and extensible.
It may not work all the time. Based on the requirements you need to take correct decision what is the right implementation for the component to make reusable