| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| private Method | |
| private Method | |
| private boolean | |
| private static final String | |
| private static final String | |
| private Map | |
| public static final String | |
| private static final byte[] | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private void | |
| private void | |
| private String | |
| private byte[] | |
| public byte[] | getAndInitialize(String classname, byte[] bytes, ClassLoader loader, ProtectionDomain protectionDomain)
|
| private String[] | |
| private void | initializeClass(String className, byte[] bytes, ClassLoader loader, ProtectionDomain protectionDomain)
|
| public void |
| cacheMap | back to summary |
|---|---|
| private Map<String, byte[]> cacheMap | |
| defineClassMethod | back to summary |
|---|---|
| private Method defineClassMethod | |
| defineClassWithProtectionDomainMethod | back to summary |
|---|---|
| private Method defineClassWithProtectionDomainMethod | |
| enabled | back to summary |
|---|---|
| private boolean enabled | |
| GENERATED_CACHE_SEPARATOR | back to summary |
|---|---|
| private static final String GENERATED_CACHE_SEPARATOR | |
| GENERATED_CACHE_SUBFOLDER | back to summary |
|---|---|
| private static final String GENERATED_CACHE_SUBFOLDER | |
| generatedCache | back to summary |
|---|---|
| private Map<String, byte[]> generatedCache | |
| IMPL_NAME | back to summary |
|---|---|
| public static final String IMPL_NAME | |
| SAME_BYTES | back to summary |
|---|---|
| private static final byte[] SAME_BYTES | |
| SAME_BYTES_STRING | back to summary |
|---|---|
| private static final String SAME_BYTES_STRING | |
| SimpleCache | back to summary |
|---|---|
| protected SimpleCache(String folder, boolean enabled) | |
| addGeneratedClassesNames | back to summary |
|---|---|
| public void addGeneratedClassesNames(String parentClassName, byte[] parentBytes, String generatedClassName) | |
| defineClass | back to summary |
|---|---|
| private void defineClass(ClassLoader loader, String name, byte[] bytes) | |
| defineClass | back to summary |
|---|---|
| private void defineClass(ClassLoader loader, String name, byte[] bytes, ProtectionDomain protectionDomain) | |
| generateKey | back to summary |
|---|---|
| private String generateKey(String classname, byte[] bytes) | |
| get | back to summary |
|---|---|
| private byte[] get(String classname, byte[] bytes) | |
| getAndInitialize | back to summary |
|---|---|
| public byte[] getAndInitialize(String classname, byte[] bytes, ClassLoader loader, ProtectionDomain protectionDomain) | |
| getGeneratedClassesNames | back to summary |
|---|---|
| private String[] getGeneratedClassesNames(String className, byte[] bytes) | |
| initializeClass | back to summary |
|---|---|
| private void initializeClass(String className, byte[] bytes, ClassLoader loader, ProtectionDomain protectionDomain) | |
| put | back to summary |
|---|---|
| public void put(String classname, byte[] origbytes, byte[] wovenbytes) | |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static int | |
| private String | |
| private long | |
| private int | |
| private transient Trace |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Object | get(Object
the key whose associated value is to be returned obj)Overrides java. Implements java. null if this map contains no mapping for the key.
|
| public static SimpleCache. | |
| public static SimpleCache. | |
| private void | |
| public Object | put(Object
key with which the specified value is to be associated key, Object value to be associated with the specified key value)Overrides java. Implements java. |
| private byte[] | |
| public void | |
| private String |
| CACHENAMEIDX | back to summary |
|---|---|
| private static final String CACHENAMEIDX | |
| DEF_STORING_TIMER | back to summary |
|---|---|
| private static int DEF_STORING_TIMER | |
| folder | back to summary |
|---|---|
| private String folder | |
| lastStored | back to summary |
|---|---|
| private long lastStored | |
| storingTimer | back to summary |
|---|---|
| private int storingTimer | |
| trace | back to summary |
|---|---|
| private transient Trace trace | |
| StoreableCachingMap | back to summary |
|---|---|
| private StoreableCachingMap(String folder, int storingTimer) | |
| get | back to summary |
|---|---|
| public Object get(Object obj) Overrides java. Implements java. Doc from java. Returns the value to which the specified key is mapped,
or More formally, if this map contains a mapping from a key
A return value of
| |
| init | back to summary |
|---|---|
| public static SimpleCache. | |
| init | back to summary |
|---|---|
| public static SimpleCache. | |
| initTrace | back to summary |
|---|---|
| private void initTrace() | |
| put | back to summary |
|---|---|
| public Object put(Object key, Object value) Overrides java. Implements java. Doc from java. Associates the specified value with the specified key in this map. If the map previously contained a mapping for the key, the old value is replaced.
| |
| readFromPath | back to summary |
|---|---|
| private byte[] readFromPath(String fullPath) throws IOException | |
| storeMap | back to summary |
|---|---|
| public void storeMap() | |
| writeToPath | back to summary |
|---|---|
| private String writeToPath(String key, byte[] bytes) throws IOException | |