public class CachedResolverCollection extends CachedCollection
java.lang.Object
s specified by a CollectionResolver.
CachedResolverCollection defers resolving its items until they
are requested, at which point they are obtained by calling the
resolveCollection
method of the CollectionResolver.
Because the items are cached, CachedResolverCollection may consume
excessive Java heap for large collections.
Modifier and Type | Field and Description |
---|---|
protected Class |
m_Class
The class of the objects in this Collection.
|
protected CollectionResolver |
m_Resolver
The CollectionResolver used to obtain the items in this Collection.
|
m_ItemsArray, m_ItemsHash
Constructor and Description |
---|
CachedResolverCollection(CollectionResolver resolver,
String className)
Constructs a CachedResolverCollection.
|
Modifier and Type | Method and Description |
---|---|
protected void |
resolveNow()
Resolves the items in this Collection.
|
void |
setItems(String[] names,
Object[] items)
Sets the items in this Collection.
|
checkItemByUpperCaseName, getItemByUpperCaseName, getItemCount, getItems, getItems, getItems, getItemsVector, handleEvent, reset, resolve
protected Class m_Class
The value returned by getItems() can be cast to an array of this type.
protected CollectionResolver m_Resolver
public CachedResolverCollection(CollectionResolver resolver, String className) throws IfsException
resolver
- the CollectionResolver for this CollectionclassName
- the fully qualified classname of the
objects in this Collection; if null,
java.lang.Object
is usedIfsException
- (IFS-12210) if the operation failsprotected void resolveNow() throws IfsException
resolveNow
in class CachedCollection
IfsException
- (IFS-12201) if the operation failspublic void setItems(String[] names, Object[] items) throws IfsException
This method is invoked by the CollectionResolver.
names
- an array containing the names of the
items in the Collectionitems
- an array containing the items in the
Collection. The array index corresponds
to the array index of names
.IfsException
- (IFS-12203) if the operation failsCopyright © 2023. All rights reserved.