This Content is good This code is not working , IN FileSytemComponentProxy , how can realFileComponent can call getPermissions function if we dont have that function in interface . If we keep that getPermissions in interface then FileSytemComponentProxy should implement that , .