Why was Japan called a hermit nation?

Japan was called the recluse or hermit nation because it had closed its doors to the European countries for as long as one hundred and fifty years and became a selfcentred nation.

That is only the meaning of a hermit nation?

The term hermit kingdom is used to refer to any country, organization or society which willfully walls itself off, either metaphorically or physically, from the rest of the world.