|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springsource.loaded.NameRegistry
public class NameRegistry
Manages a mapping of names to numbers. The same number anywhere means the same name. This means that if some type a/b/C has been loaded in two places (by different classloaders), it will have the same number in both. Only one of those a/b/C types will be visible at the location in question, the tricky part could be working out which one (if classloaders are being naughty) but in theory the first time we get confused (due to finding the name twice), we can work out which one is right and use that mapping from then on.
| Method Summary | |
|---|---|
static int |
getIdFor(java.lang.String slashedClassName)
Return the id for a particular type. |
static int |
getIdOrAllocateFor(java.lang.String slashedClassName)
Return the id for a particular type. |
static java.lang.String |
getTypenameById(int typeId)
|
static void |
reset()
Typically used by tests to ensure it looks like a fresh NameRegistry is being used. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void reset()
public static int getIdFor(java.lang.String slashedClassName)
slashedClassName - a type name like java/lang/String
public static int getIdOrAllocateFor(java.lang.String slashedClassName)
slashedClassName - a type name like java/lang/String
public static java.lang.String getTypenameById(int typeId)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||