oracle.cabo.ui.data.provider
Class CachingDataProvider
java.lang.Object
|
+--oracle.cabo.ui.data.provider.CachingDataProvider
- All Implemented Interfaces:
- DataProvider
- public class CachingDataProvider
- extends java.lang.Object
- implements DataProvider
This class wraps a DataProvider and caches DataObjects returned by
the getDataObject
method.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CachingDataProvider
public CachingDataProvider(DataProvider provider)
- Parameters:
provider
- the DataProvider to wrap around and provide caching
for.
getDataObject
public DataObject getDataObject(RenderingContext context,
java.lang.String namespace,
java.lang.String name)
- the internal cache is searched by namespace and name for the request
before querying the DataProvider. Note that the RenderingContext is
ignored during the cache search.
- Specified by:
getDataObject
in interface DataProvider
- See Also:
DataProvider
init
public void init(RenderingContext context)
- initializes the wrapped DataProvider
- Specified by:
init
in interface DataProvider
- See Also:
DataProvider
cleanup
public void cleanup(RenderingContext context)
- cleans up the wrapped DataProvider
- Specified by:
cleanup
in interface DataProvider
- See Also:
DataProvider