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)
ObjectCache
getReference
in interface ObjectCache
T
- object typeobject
- Requested object, may be nullpublic <B extends ProductAwareBuilder<P>,P> P getProduct(B builder)
ObjectCache
ObjectCache.getReference(Object)
, this method has
the potential of completely eliding the product instantiation.getProduct
in interface ObjectCache
B
- builder typeP
- produced object typebuilder
- Builder instance, may not be nullCopyright © 2017 OpenDaylight. All rights reserved.