Class MythreadScopedata {// Single PRIVATE MythreadScopedata () {} // Provide an instance method Public Static Synchronized MythreadScopedata GetThreadInstance () {// Internal data set obtain instance objects mythreadscopedata instance = map.get (); if (if () Instance == NULL) {Instance = New MythreadScopedata (); MAP.SET (Instance);} Return Instance;} // Stock the instance object into the current threaded data concentration of the Private Static ata instance = null; // Hungry mode Private String name; Private int Age; Public String getname () {Return name;} Public void setname (string name) {this.name = name; e () {Return Age;} Public void setage (int Age) { this.age = Age;}}