public final class NoopObjectCache extends Object implements ObjectCache
| Modifier and Type | Method and Description |
|---|---|
static NoopObjectCache |
getInstance()
Get the cache instance.
|
<B extends ProductAwareBuilder<P>,P> |
getProduct(B builder)
Get a reference to an object equal to the product of a builder.
|
<T> T |
getReference(T object)
Get a reference for an object which is equal to specified object.
|
public static NoopObjectCache getInstance()
public <T> T getReference(T object)
ObjectCachegetReference in interface ObjectCacheT - object typeobject - Requested object, may be nullpublic <B extends ProductAwareBuilder<P>,P> P getProduct(@Nonnull B builder)
ObjectCacheObjectCache.getReference(Object), this method has
the potential of completely eliding the product instantiation.getProduct in interface ObjectCacheB - builder typeP - produced object typebuilder - Builder instance, may not be nullCopyright © 2018 OpenDaylight. All rights reserved.