File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A query with respect to creation of the shared Objects.

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I am having a query with respect to creation of the shared Objects.

I have seen a example where the Author is creatining Shared Object as shown
below :


and there is nothing related to the word "myTasks" anywhere in the Application .

Can anybody please let me know what is this word "myTasks" mean here ??

Please share your views on this .
Thanks in advance .

 
Hongli Li
Ranch Hand
Posts: 124
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just a guess, the word "myTasks" is served as a key to retrieve the shared object, and the object have multi-locals support. So if the user's locale is Chinese,then the code will return a Chinese version of the shared Object, if it's Japanese, then Japanese version of Shared Object will be returned. how to implement this sharedObject, in flex world it's mostly to be a singleton. cairngorm uses singleton a lot you can check that out.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic