Package org.exolab.castor.builder.util
Class ClassInfoResolverImpl
- java.lang.Object
-
- org.exolab.castor.builder.util.ClassInfoResolverImpl
-
- All Implemented Interfaces:
ClassInfoResolver
- Direct Known Subclasses:
SGStateInfo
public class ClassInfoResolverImpl extends java.lang.Object implements ClassInfoResolver
A class for "caching" ClassInfo's which later need to be resolved (retrieved).- Version:
- $Revision: 7943 $ $Date: 2003-03-03 00:05:44 -0700 (Mon, 03 Mar 2003) $
- Author:
- Keith Visco
-
-
Constructor Summary
Constructors Constructor Description ClassInfoResolverImpl()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbindReference(java.lang.Object key, ClassInfo classInfo)Adds the given Reference to this ClassInfo resolver.java.util.Enumeration<?>keys()Returns all the keys used for binding ClassInfo objects.ClassInforesolve(java.lang.Object key)Returns the ClassInfo which has been bound to the given key.
-
-
-
Method Detail
-
bindReference
public final void bindReference(java.lang.Object key, ClassInfo classInfo)Adds the given Reference to this ClassInfo resolver.- Specified by:
bindReferencein interfaceClassInfoResolver- Parameters:
key- the key to bind a reference to.classInfo- the ClassInfo which is being referenced.
-
keys
public final java.util.Enumeration<?> keys()
Returns all the keys used for binding ClassInfo objects.- Returns:
- an Enumeration over the keys using for binding ClassInfo objects.
-
resolve
public final ClassInfo resolve(java.lang.Object key)
Returns the ClassInfo which has been bound to the given key.- Specified by:
resolvein interfaceClassInfoResolver- Parameters:
key- the object to which the ClassInfo has been bound.- Returns:
- the ClassInfo which has been bound to the given key.
-
-