# ConstructorCache
Keywords: php.java.bridge.ConstructorCache class

### php.java.bridge

# Class ConstructorCache

- `java.lang.Object`

- `php.java.bridge.ConstructorCache`

`public class ConstructorCache`
`extends java.lang.Object`

Cache [(method, parameters) -> Method] mappings. No synchronization, so use this class per thread or per request only.

## Nested Class Summary

`static class`

`ConstructorCache.Entry`
  A cache entry carrying the method name and the parameters

## Method Summary

`java.lang.reflect.Constructor`

`get(ConstructorCache.Entry entry)`
  Get the constructor for the entry

`ConstructorCache.Entry`

`getEntry(java.lang.String name, 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`

## Method Details

### get

    public java.lang.reflect.Constructor get(ConstructorCache.Entry entry)

> Get the constructor for the entry

> Parameters:
>   `entry` - The entry

> Returns:
>   The constructor

### getEntry

    public ConstructorCache.Entry getEntry(java.lang.String name,
                                           args[] )

> Get a cache entry from a name args pair

> Parameters:
>   `name` - The constructor name

> Returns:
>   A cache entry.

### put

    public void put(ConstructorCache.Entry entry,
                    java.lang.reflect.Constructor method)

> Store a constructor with an entry

> Parameters:
>   `entry` - The cache entry
>   `method` - The constructor