|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectphp.java.bridge.ConstructorCache
public final class ConstructorCache
Cache [Entry(method, parameters) -> Method]. No synchronization, so use this class per thread or per request only.
Nested Class Summary | |
---|---|
static class |
ConstructorCache.Entry
A cache entry |
Constructor Summary | |
---|---|
ConstructorCache()
Create a new ConstructorCache |
Method Summary | |
---|---|
void |
clear()
Removes all mappings from this cache. |
java.lang.reflect.Constructor |
get(ConstructorCache.Entry entry)
Get the constructor for the entry |
ConstructorCache.Entry |
getEntry(java.lang.String name,
java.lang.Object[] args)
Get a cache entry from a name args pair |
void |
put(ConstructorCache.Entry entry,
java.lang.reflect.Constructor method)
Store a constructor with an entry |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConstructorCache()
Method Detail |
---|
public java.lang.reflect.Constructor get(ConstructorCache.Entry entry)
entry
- The entry
public void put(ConstructorCache.Entry entry, java.lang.reflect.Constructor method)
entry
- The cache entrymethod
- The constructorpublic ConstructorCache.Entry getEntry(java.lang.String name, java.lang.Object[] args)
name
- The constructor nameargs
- The arguments
public void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |