|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deduced.controller.implementation.FlyWheelControllerProvider
org.deduced.controller.implementation.CachedFlyWheelControllerProvider
public class CachedFlyWheelControllerProvider

CachedFlyWheelControllerProvider will attempt to provide controllers based on a cache that it holds generated by past requests. If the cache doesn't contain the required controller, then a new controller will be created an put in cache. The cache uses weak pointers to both the model and the controller so they may be reclaimed by the garbage collector if nobody else is using them.
| Nested Class Summary | |
|---|---|
static class |
CachedFlyWheelControllerProvider.PropertyControllerKey
PropertyControllerKey is used to create a unique key that references a model and a property key. |
| Field Summary | |
|---|---|
private java.util.Map<PropertyCollection<?,?>,PropertyList<PropertyCollectionController>> |
childCollectionControllerMapMap
map between the model and the map of child property collection controller |
private java.util.Map<PropertyCollection<?,?>,PropertyList<PropertyController>> |
childPropertyControllerMapMap
map between the model and the map of child property controller |
private java.util.Map<PropertyCollection<?,?>,PropertyCollectionController> |
propertyCollectionControllerMap
map between the model and the property collection controller |
private java.util.Map<CachedFlyWheelControllerProvider.PropertyControllerKey,PropertyController> |
propertyControllerMap
map between the model+propertyKey and the property controller |
| Constructor Summary | |
|---|---|
CachedFlyWheelControllerProvider()
|
|
| Method Summary | |
|---|---|
PropertyList<PropertyCollectionController> |
getPropertyCollectionChildPropertyCollectionControllerList(PropertyCollection<?,?> model)
(non-Javadoc) |
PropertyCollectionController |
getPropertyCollectionController(PropertyCollection<?,?> model)
(non-Javadoc) |
PropertyList<PropertyController> |
getPropertyCollectionPropertyControllerList(PropertyCollection<?,?> model)
(non-Javadoc) |
PropertyController |
getPropertyController(PropertyCollection<?,?> model,
java.lang.Object propertyKey)
(non-Javadoc) |
| Methods inherited from class org.deduced.controller.implementation.FlyWheelControllerProvider |
|---|
createPropertyCollectionChildPropertyCollectionControllerList, createPropertyCollectionController, createPropertyCollectionPropertyControllerList, createPropertyController, getControllerFactory, setControllerFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.Map<PropertyCollection<?,?>,PropertyList<PropertyCollectionController>> childCollectionControllerMapMap
private java.util.Map<PropertyCollection<?,?>,PropertyList<PropertyController>> childPropertyControllerMapMap
private java.util.Map<PropertyCollection<?,?>,PropertyCollectionController> propertyCollectionControllerMap
private java.util.Map<CachedFlyWheelControllerProvider.PropertyControllerKey,PropertyController> propertyControllerMap
| Constructor Detail |
|---|
public CachedFlyWheelControllerProvider()
| Method Detail |
|---|
public PropertyList<PropertyCollectionController> getPropertyCollectionChildPropertyCollectionControllerList(PropertyCollection<?,?> model)
getPropertyCollectionChildPropertyCollectionControllerList in interface ControllerProvidergetPropertyCollectionChildPropertyCollectionControllerList in class FlyWheelControllerProvidermodel - the controlled model
FlyWheelControllerProvider.getPropertyCollectionChildPropertyCollectionControllerList(org.deduced.PropertyCollection)public PropertyCollectionController getPropertyCollectionController(PropertyCollection<?,?> model)
getPropertyCollectionController in interface ControllerProvidergetPropertyCollectionController in class FlyWheelControllerProvidermodel - the model from which to fetch the controller
FlyWheelControllerProvider.getPropertyCollectionController(org.deduced.PropertyCollection)public PropertyList<PropertyController> getPropertyCollectionPropertyControllerList(PropertyCollection<?,?> model)
getPropertyCollectionPropertyControllerList in interface ControllerProvidergetPropertyCollectionPropertyControllerList in class FlyWheelControllerProvidermodel - the controlled model
FlyWheelControllerProvider.getPropertyCollectionPropertyControllerList(org.deduced.PropertyCollection)
public PropertyController getPropertyController(PropertyCollection<?,?> model,
java.lang.Object propertyKey)
getPropertyController in interface ControllerProvidergetPropertyController in class FlyWheelControllerProvidermodel - the controlled modelpropertyKey - the key of the controlled property
FlyWheelControllerProvider.getPropertyController(org.deduced.PropertyCollection,
java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||