The fruit is a legume (also known as a pod). The pods take a full year to develop and ripen. The sweet ripe pods eventually fall to the ground and are eaten by various mammals (goats, sheep, cows), and so the hard seeds are dispersed.