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 Method |
cloneMethod
The method which will return a clone of an instance of the containerClass.
|
protected Class |
containerClass
The concrete container class.
|
protected String |
containerClassName |
constructor, elementDescriptor| Constructor and Description |
|---|
InterfaceContainerPolicy()
INTERNAL:
Construct a new policy.
|
InterfaceContainerPolicy(Class containerClass)
INTERNAL:
Construct a new policy for the specified class.
|
InterfaceContainerPolicy(String containerClassName)
INTERNAL:
Construct a new policy for the specified class name.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
cloneFor(Object container)
INTERNAL:
Return a clone of the specified container.
|
void |
convertClassNamesToClasses(ClassLoader classLoader)
INTERNAL:
Convert all the class-name-based settings in this ContainerPolicy to actual class-based
settings.
|
Method |
getCloneMethod()
INTERNAL:
Return the 'clone()' Method for the container class.
|
protected Method |
getCloneMethod(Class javaClass)
INTERNAL:
Return the 'clone()' Method for the specified class.
|
Class |
getContainerClass()
INTERNAL:
Returns the container class to be used with this policy.
|
String |
getContainerClassName()
INTERNAL:
Used by the MW
|
abstract Class |
getInterfaceType() |
boolean |
hasNext(Object iterator)
INTERNAL:
Return whether the iterator has more objects,
|
protected Object |
invokeCloneMethodOn(Method method,
Object container)
INTERNAL:
Invoke the specified clone method on the container,
handling the necessary exceptions.
|
boolean |
isValidContainerType(Class containerType)
INTERNAL:
Validate the container type.
|
protected Object |
next(Object iterator)
INTERNAL:
Return the next object on the queue.
|
void |
setCloneMethod(Method cloneMethod)
INTERNAL:
Set the Method that will return a clone of an instance of the containerClass.
|
void |
setContainerClass(Class containerClass)
INTERNAL:
Set the class to use as the container.
|
void |
setContainerClassName(String containerClassName)
INTERNAL:
Used by the MW
|
protected 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, vectorForprotected Class containerClass
protected String containerClassName
protected transient Method cloneMethod
public InterfaceContainerPolicy()
public InterfaceContainerPolicy(Class containerClass)
public InterfaceContainerPolicy(String containerClassName)
public Object cloneFor(Object container)
cloneFor in class ContainerPolicypublic void convertClassNamesToClasses(ClassLoader classLoader)
convertClassNamesToClasses in class ContainerPolicyclassLoader - public Method getCloneMethod()
protected Method getCloneMethod(Class javaClass)
public Class getContainerClass()
getContainerClass in class ContainerPolicypublic String getContainerClassName()
ContainerPolicygetContainerClassName in class ContainerPolicypublic abstract Class getInterfaceType()
public boolean hasNext(Object iterator)
hasNext in class ContainerPolicyContainerPolicy.iteratorFor(java.lang.Object)protected Object invokeCloneMethodOn(Method method, Object container)
public boolean isValidContainerType(Class containerType)
isValidContainerType in class ContainerPolicyprotected Object next(Object iterator)
next in class ContainerPolicyContainerPolicy.iteratorFor(java.lang.Object)public void setCloneMethod(Method cloneMethod)
public void setContainerClass(Class containerClass)
setContainerClass in class ContainerPolicypublic void setContainerClassName(String containerClassName)
ContainerPolicysetContainerClassName in class ContainerPolicyprotected Object toStringInfo()
toStringInfo in class ContainerPolicyCopyright © 2024. All rights reserved.