public class CachingPhysicalModelFactory extends Object implements PhysicalModelFactory
PhysicalModelFactory
decorator that caches IPhysicalModel
for
a IModel
using weak keys and soft values. This allows to keep the
IPhysicalModel
associated to a IModel
until the
IModel
is not referenced anymore.Constructor and Description |
---|
CachingPhysicalModelFactory(PhysicalModelFactory delegatingFactory) |
public CachingPhysicalModelFactory(PhysicalModelFactory delegatingFactory)
public IPhysicalModel createPhysicalModel(IModel model)
createPhysicalModel
in interface PhysicalModelFactory
Copyright © 2017. All rights reserved.