aspectj and jvmti provide no suitable guarantees on locking for class redefinitions, so every implementation must have a some locking mechanism to prevent invalid reads.
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public CachedClassEntry | Returns: the cached bytes or null, if the entry does not existentry to retrieve ref, byte[] Pre-weaving class bytes - required in order to
ensure that the cached entry refers to the same original class originalBytes)Get a cache entry |
| public String[] | |
| public void | put(CachedClassEntry
key of the entry entry, byte[] Pre-weaving class bytes - required in order to
ensure that the cached entry refers to the same original class originalBytes)Put an entry in the cache |
| public void |
| clear | back to summary |
|---|---|
| public void clear() Clear the entire cache | |
| get | back to summary |
|---|---|
| public CachedClassEntry get(CachedClassReference ref, byte[] originalBytes) Get a cache entry
| |
| getKeys | back to summary |
|---|---|
| public String[] getKeys(String regex) Return a list of keys which match the given regex. | |
| put | back to summary |
|---|---|
| public void put(CachedClassEntry entry, byte[] originalBytes) Put an entry in the cache
| |
| remove | back to summary |
|---|---|
| public void remove(CachedClassReference ref) Remove an entry from the cache | |