Gets the Cache that will be used as the default for the specified class by future Lookups. @param dclass The class whose cache is being retrieved. @return The default cache for the specified class.
(int dclass)
| 122 | * @return The default cache for the specified class. |
| 123 | */ |
| 124 | public static synchronized Cache |
| 125 | getDefaultCache(int dclass) { |
| 126 | DClass.check(dclass); |
| 127 | Cache c = (Cache) defaultCaches.get(Mnemonic.toInteger(dclass)); |
| 128 | if (c == null) { |
| 129 | c = new Cache(dclass); |
| 130 | defaultCaches.put(Mnemonic.toInteger(dclass), c); |
| 131 | } |
| 132 | return c; |
| 133 | } |
| 134 | |
| 135 | /** |
| 136 | * Sets the Cache to be used as the default for the specified class by future |