Announcement Announcement Module
Collapse
No announcement yet.
Central Storage of classes Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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?

    Comment

    Working...
    X