Load classes as a beans.