Results 1 to 2 of 2

Thread: Central Storage of classes

  1. #1
    Join Date
    Aug 2008
    Posts
    14

    Default Central Storage of classes

    Hello,

    we have on some classes an Annotation (TechNamePrefix). The TechName should then be calculated by the TechNamePrefix and the Id (from Database) of the Object.

    Now, we will get URLs with parameters like TechNamePrefix+Id (say "var23"), which we would like to determine now from the database. For this to work, we would like to register all TechNamePrefixes in a Map or something, so that we can access the class and the concrete object easily.

    Is this possible? If so, how. Are annotations the way to go, or is there a better way?

  2. #2
    Join Date
    Aug 2008
    Posts
    14

    Default

    Just stumbled across

    http://bill.burkecentral.com/2008/01...ns-at-runtime/

    and

    http://code.google.com/p/reflections/

    Looks like this could do the trick, what do you think?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •