java.io.Serializable
, ClassFactory
ClassFactoryCollector
, JavaBaseClassFactory
, URLClassFactory
public abstract class ClassFactoryImpl extends java.lang.Object implements ClassFactory
ClassFactory
interface.Constructor | Description |
---|---|
ClassFactoryImpl() |
Creates a new class factory.
|
Modifier and Type | Method | Description |
---|---|---|
void |
configure(Configuration config) |
Configures this factory.
|
boolean |
equals(java.lang.Object o) |
Tests for equality.
|
ClassComparator |
getComparator() |
Returns the class comparator used to sort the super classes of an object.
|
Configuration |
getConfig() |
Returns the currently set configuration or null, if none was set.
|
ObjectDescription |
getDescriptionForClass(java.lang.Class c) |
Returns an object-description for a class.
|
java.util.Iterator |
getRegisteredClasses() |
Returns an iterator that provides access to the registered object definitions.
|
ObjectDescription |
getSuperClassObjectDescription(java.lang.Class d,
ObjectDescription knownSuperClass) |
Returns the most concrete object-description for the super class of a class.
|
int |
hashCode() |
Returns a hash code.
|
protected void |
registerClass(java.lang.Class key,
ObjectDescription od) |
Registers an object description with the factory.
|
public ClassFactoryImpl()
public ClassComparator getComparator()
public ObjectDescription getDescriptionForClass(java.lang.Class c)
getDescriptionForClass
in interface ClassFactory
c
- the class.public ObjectDescription getSuperClassObjectDescription(java.lang.Class d, ObjectDescription knownSuperClass)
getSuperClassObjectDescription
in interface ClassFactory
d
- the class.knownSuperClass
- a known supported superclass or null, if no superclass
is known yet.protected void registerClass(java.lang.Class key, ObjectDescription od)
key
- the key.od
- the object description.public java.util.Iterator getRegisteredClasses()
getRegisteredClasses
in interface ClassFactory
public void configure(Configuration config)
The configuration contents may change during the reporting.
configure
in interface ClassFactory
config
- the configuration, never nullpublic Configuration getConfig()
public boolean equals(java.lang.Object o)
equals
in interface ClassFactory
equals
in class java.lang.Object
o
- the object to test.public int hashCode()
hashCode
in interface ClassFactory
hashCode
in class java.lang.Object