|
Carrot2 v3.5.2
API Documentation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.util.resource.ResourceCache<V>
V - Resource value class.public final class ResourceCache<V>
A static cache of immutable, reusable resources associated with a given
ResourceLookup. Roughly the same thing can be achieved with a
MapMaker, but we want some logging in place too.
| Constructor Summary | |
|---|---|
ResourceCache(com.google.common.base.Function<ResourceLookup,V> valueMaker)
Create a resource cache with the provided value maker. |
|
| Method Summary | |
|---|---|
V |
get(ResourceLookup resourceLookup,
boolean recreate)
Acquire a resource from the resource lookup. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceCache(com.google.common.base.Function<ResourceLookup,V> valueMaker)
| Method Detail |
|---|
public V get(ResourceLookup resourceLookup,
boolean recreate)
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||