Function loading in a shell scripting like class loading in java

Like class loader in java, can we make a function loader in shell script, for this can someone throw some light on how internally bash runs a shell script , what happenes in runtime ...

thanks in advance..

Write one script which will source automaticallly all the functions used in any script . So user wont have to manually source every function before using it in his/her script. :confused: