This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Need to Write a Wrapper to Support Individual Traits and Identifiers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Need to Write a Wrapper to Support Individual Traits and Identifiers" Watch "Need to Write a Wrapper to Support Individual Traits and Identifiers" New topic
Author

Need to Write a Wrapper to Support Individual Traits and Identifiers

Natalie Kopple
Ranch Hand

Joined: May 06, 2003
Posts: 325
Hi, there is a rather large scale undertaking at my work place. There are several applications under the project.

The Managers/Architects of the project want a "wrapper" to be coded to support users' traits and identifiers. Therefore, when a user's; say, name, SSN, etc. are needed, the information can be retrieved from this wrapper.

What are the tasks involved in writing such a wrapper? Are there code examples of writing such a wrapper?

Thanks very much for help.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

The first task, as always, is "Design". This is where you ask questions like "Do all users have the same traits?" and "Are there groups of users whose members all have the same traits?" and "Can people create arbitrary traits?" and "Can a trait be applied to one user and no others?" and "What is going to be done with these traits?"

But you said you had architects. It would have been their responsibility to ask such questions and to produce a design which is considerably larger than your two-sentence description of the requirement. Have they done that yet? It's too early to be asking about programming if you don't have some kind of a design available.
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 7553
    
  18

Natalie Kopple wrote:What are the tasks involved in writing such a wrapper? Are there code examples of writing such a wrapper?

Well a standard wrapper is exactly that: a class that "wraps" another, viz:Normally, forwarders have identical signatures to the methods they call, but you only have to define whatever ones are required for the wrapper. In this case, that probably means methods that have something to do with 'traits'.

However, since presumably they're already available through the User class itself, I don't really see the point.
Maybe you could explain.

Winston
Natalie Kopple
Ranch Hand

Joined: May 06, 2003
Posts: 325
Some one on the team is currently writing the User Story/ Use Case/ Technical Story. Nevertheless, I already known that I am going to be the one code this wrapper class.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need to Write a Wrapper to Support Individual Traits and Identifiers
 
Similar Threads
Primary Key Autogeneration for InheritenceType. TABLE_PER_CLASS
library handiness compared to groovy?
Value changes from "1" to "l" after reading to file
Design Pattern
identifier