Constructor based application context