The process in which a floral organ primordium acquires stamen or staminode identity. Identity is considered to be the aggregate of characteristics by which a structure is recognized.
specification of stamen identity