public abstract class InterfaceContainerPolicy extends ContainerPolicy
Purpose: The abstract class for ContainerPolicy's whose container class implements a container interface.
Modifier and Type | Field and Description |
---|---|
protected java.lang.reflect.Method |
cloneMethod
The method which will return a clone of an instance of the containerClass.
|
protected java.lang.Class |
containerClass
The concrete container class.
|
protected java.lang.String |
containerClassName |
constructor, elementDescriptor
Constructor and Description |
---|
InterfaceContainerPolicy()
INTERNAL:
Construct a new policy.
|
InterfaceContainerPolicy(java.lang.Class containerClass)
INTERNAL:
Construct a new policy for the specified class.
|
InterfaceContainerPolicy(java.lang.String containerClassName)
INTERNAL:
Construct a new policy for the specified class name.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
cloneFor(java.lang.Object container)
INTERNAL:
Return a clone of the specified container.
|
void |
convertClassNamesToClasses(java.lang.ClassLoader classLoader)
INTERNAL:
Convert all the class-name-based settings in this ContainerPolicy to actual class-based
settings.
|
java.lang.reflect.Method |
getCloneMethod()
INTERNAL:
Return the 'clone()' Method for the container class.
|
protected java.lang.reflect.Method |
getCloneMethod(java.lang.Class javaClass)
INTERNAL:
Return the 'clone()' Method for the specified class.
|
java.lang.Class |
getContainerClass()
INTERNAL:
Returns the container class to be used with this policy.
|
java.lang.String |
getContainerClassName()
INTERNAL:
Used by the MW
|
abstract java.lang.Class |
getInterfaceType() |
boolean |
hasNext(java.lang.Object iterator)
INTERNAL:
Return whether the iterator has more objects,
|
protected java.lang.Object |
invokeCloneMethodOn(java.lang.reflect.Method method,
java.lang.Object container)
INTERNAL:
Invoke the specified clone method on the container,
handling the necessary exceptions.
|
boolean |
isValidContainerType(java.lang.Class containerType)
INTERNAL:
Validate the container type.
|
protected java.lang.Object |
next(java.lang.Object iterator)
INTERNAL:
Return the next object on the queue.
|
void |
setCloneMethod(java.lang.reflect.Method cloneMethod)
INTERNAL:
Set the Method that will return a clone of an instance of the containerClass.
|
void |
setContainerClass(java.lang.Class containerClass)
INTERNAL:
Set the class to use as the container.
|
void |
setContainerClassName(java.lang.String containerClassName)
INTERNAL:
Used by the MW
|
protected java.lang.Object |
toStringInfo() |
addInto, addInto, addInto, addIntoWithOrder, addIntoWithOrder, addIntoWithOrder, buildContainerFromVector, buildPolicyFor, buildPolicyFor, clear, clone, clone, compareCollectionsForChange, compareKeys, concatenateContainers, containerInstance, containerInstance, contains, contains, containsKey, execute, getConstructor, getElementDescriptor, hasElementDescriptor, hasOrder, initializeConstructor, isCollectionPolicy, isCursoredStreamPolicy, isCursorPolicy, isCursorStreamPolicy, isDirectMapPolicy, isEmpty, isListPolicy, isMapPolicy, isScrollableCursorPolicy, isValidContainer, iteratorFor, keyFrom, mergeCascadeParts, mergeChanges, next, overridesRead, prepare, prepareForExecution, recordAddToCollectionInChangeRecord, recordRemoveFromCollectionInChangeRecord, remoteExecute, removeAllElements, removeFrom, removeFrom, removeFrom, removeFromWithOrder, setConstructor, setElementDescriptor, setKeyName, sizeFor, toString, validateElementAndRehashIfRequired, vectorFor
protected java.lang.Class containerClass
protected java.lang.String containerClassName
protected transient java.lang.reflect.Method cloneMethod
public InterfaceContainerPolicy()
public InterfaceContainerPolicy(java.lang.Class containerClass)
public InterfaceContainerPolicy(java.lang.String containerClassName)
public java.lang.Object cloneFor(java.lang.Object container)
cloneFor
in class ContainerPolicy
public void convertClassNamesToClasses(java.lang.ClassLoader classLoader)
convertClassNamesToClasses
in class ContainerPolicy
classLoader
- public java.lang.reflect.Method getCloneMethod()
protected java.lang.reflect.Method getCloneMethod(java.lang.Class javaClass)
public java.lang.Class getContainerClass()
getContainerClass
in class ContainerPolicy
public java.lang.String getContainerClassName()
ContainerPolicy
getContainerClassName
in class ContainerPolicy
public abstract java.lang.Class getInterfaceType()
public boolean hasNext(java.lang.Object iterator)
hasNext
in class ContainerPolicy
ContainerPolicy.iteratorFor(java.lang.Object)
protected java.lang.Object invokeCloneMethodOn(java.lang.reflect.Method method, java.lang.Object container)
public boolean isValidContainerType(java.lang.Class containerType)
isValidContainerType
in class ContainerPolicy
protected java.lang.Object next(java.lang.Object iterator)
next
in class ContainerPolicy
ContainerPolicy.iteratorFor(java.lang.Object)
public void setCloneMethod(java.lang.reflect.Method cloneMethod)
public void setContainerClass(java.lang.Class containerClass)
setContainerClass
in class ContainerPolicy
public void setContainerClassName(java.lang.String containerClassName)
ContainerPolicy
setContainerClassName
in class ContainerPolicy
protected java.lang.Object toStringInfo()
toStringInfo
in class ContainerPolicy